Page 1 of 1

WhileManeuvering WhileStepping order of operations

Posted: Thu May 16, 2024 3:19 am
by Angel Rocha 6645752e1159d
The WhileManeuvering/WhileStepping commands allow the user to execute arbitrary FreeFlyer script while simultaneously Maneuvering/Stepping the reference spacecraft. The command will first execute the internal Maneuver/Step according to the StepSize, then execute the FreeFlyer script during each iteration.

FreeFlyer Script Example

Code: Select all

Spacecraft SC;
TimeSpan epoch = SC.Epoch;
Variable i;

Report SC.EpochText;

WhileStepping SC to (SC.Epoch >= (epoch + TimeSpan.FromSeconds(3000)));
	Report i, SC.EpochText;
	i++;
End;