WhileManeuvering WhileStepping order of operations

Post your experiences with FreeFlyer in this forum to get feedback and support. If you're a current customer who needs support, please contact the FreeFlyer Support Team.
Technical Support Email: techsupport@ai-solutions.com Phone: +1 (301) 306-1756 Ext 2
Angel Rocha 6645752e1159d
Posts: 5
Joined: Thu May 16, 2024 2:53 am
WhileManeuvering WhileStepping order of operations

Post 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;