TrajectoryPhase.AddNode(Spacecraft, Array) Method

Top 

Description

Adds a state to the underlying TrajectoryNodes of the TrajectoryPhase using the current state of the passed Spacecraft. The node control variables will also be assigned using the control Array argument.

 

Note: the number and order of elements in the controlVariables Array must equal the number and order of control variables in the selected ControlModel. Refer to the TrajectoryPhase.ControlModel property for more information on control variables.

 

Note: if the Spacecraft's central body differs from the TrajectoryPhase's central body, a state conversion will take place automatically before the TrajectoryNode is added.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

Click here to see the documentation for this object in nanosecond timing precision mode.

 

Method Signature

TrajectoryPhase.AddNode(

Spacecraft spacecraft,


Array controlVariables)

 

 

Arguments

spacecraft


Description:

The spacecraft to extract the position, velocity, mass, and epoch from for the new TrajectoryNode.

 

 

controlVariables


Description:

An array containing the position and velocity for the new TrajectoryNode.

Required Size:

At least 0

 

 

 

Syntax

myTrajectoryPhase1.AddNode(mySpacecraft1, myArray1);

 

 

See also

TrajectoryPhase Object

TrajectoryPhase.AddNode