WhileManeuvering WhileStepping order of operations
-
- Posts: 6
- Joined: Thu May 16, 2024 2:53 am
WhileManeuvering WhileStepping order of operations
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
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;