Description
Returns the point in the orbit where the Spacecraft is at its furthest distance from its central body.
Timing Precision Mode
This page describes functionality in nanosecond timing precision mode.
Click here to see the documentation for this object in millisecond timing precision mode.
Note: This is a Stop-Propagation method. See the Stop-Propagation Properties and Methods page for more information.
Note: This method has a state. See the Methods and Properties with State page for more information.
Method Signature
Spacecraft.OrbitApoapsis(
|
)
|
Return Value
Returns the point in the orbit where the Spacecraft is at its furthest distance from a Planet, Moon, or CelestialObject.
Syntax
Step mySpacecraft1 to ( mySpacecraft1.OrbitApoapsis());
|
The OrbitApoapsis method can be used to notify the user when the Spacecraft has reached the apoapsis of its orbit. The following example shows how you can determine if a Spacecraft is at the apoapsis.
Spacecraft Spacecraft1;
Report Spacecraft1.OrbitApoapsis(); // Reports 0
Step Spacecraft1 to (Spacecraft1.OrbitApoapsis());
Report Spacecraft1.OrbitApoapsis(); // Reports 1
|
The first Report command will report a 0, provided the Spacecraft is not initialized at the apoapsis of its orbit. The second Report command will report a 1, signifying the spacecraft has reached apoapsis.
Note: This example only works with orbits that have an eccentricity larger than 0.0001.
|
See also
Spacecraft Object
Spacecraft.OrbitApoapsis
Spacecraft Propagation Guide
Coverage and Contact Analysis Guide
|