Step a Formation and Spacecraft simultaneously
-
- Posts: 5
- Joined: Thu May 16, 2024 2:53 am
Step a Formation and Spacecraft simultaneously
The Formation Object has built in Step and StepToEpoch Methods that can be used to Step the entire Formation with one line of script. Alternatively, you can use the Step Command to Step the entire Formation in the same way you would for a Spacecraft.
Step using Step Command
Step using StepToEpoch Method
Step using Step Command
Code: Select all
While (Spacecraft1.ElapsedTime < TIMESPAN(1 days));
Step Form;
Step Spacecraft1 to (Spacecraft1.Epoch == Form[0].Epoch);
End;
Step using StepToEpoch Method
Code: Select all
While (Spacecraft1.ElapsedTime < TIMESPAN(1 days));
Step Spacecraft1;
Form.StepToEpoch(Spacecraft1.Epoch);
End;