Node#
- class SpaceCenter.Node#
Represents a maneuver node. Can be created using
SpaceCenter.Control:add_node().-
prograde:
number# The magnitude of the maneuver nodes delta-v in the prograde direction, in \(\mathrm{m/s}\).
- Attribute:
Can be read or written
-
normal:
number# The magnitude of the maneuver nodes delta-v in the normal direction, in \(\mathrm{m/s}\).
- Attribute:
Can be read or written
-
radial:
number# The magnitude of the maneuver nodes delta-v in the radial direction, in \(\mathrm{m/s}\).
- Attribute:
Can be read or written
-
delta_v:
number# The delta-v of the maneuver node, in \(\mathrm{m/s}\).
- Attribute:
Can be read or written
Note
Does not change when executing the maneuver node. See
SpaceCenter.Node.remaining_delta_v.
-
remaining_delta_v:
number# Gets the remaining delta-v of the maneuver node, in \(\mathrm{m/s}\). Changes as the node is executed. This is equivalent to the delta-v reported in-game.
- Attribute:
Read-only, cannot be set
-
burn_vector(
reference_frame?:SpaceCenter.ReferenceFrame|Types.none
):Tuple# Returns the burn vector for the maneuver node.
- Parameters:
reference_frame – The reference frame that the returned vector is in. Defaults to
SpaceCenter.Vessel.orbital_reference_frame.- Returns:
A vector whose direction is the direction of the maneuver node burn, and magnitude is the delta-v of the burn in \(\mathrm{m/s}\).
Note
Does not change when executing the maneuver node. See
SpaceCenter.Node:remaining_burn_vector().
-
remaining_burn_vector(
reference_frame?:SpaceCenter.ReferenceFrame|Types.none
):Tuple# Returns the remaining burn vector for the maneuver node.
- Parameters:
reference_frame – The reference frame that the returned vector is in. Defaults to
SpaceCenter.Vessel.orbital_reference_frame.- Returns:
A vector whose direction is the direction of the maneuver node burn, and magnitude is the delta-v of the burn in \(\mathrm{m/s}\).
Note
Changes as the maneuver node is executed. See
SpaceCenter.Node:burn_vector().
-
ut:
number# The universal time at which the maneuver will occur, in seconds.
- Attribute:
Can be read or written
-
time_to:
number# The time until the maneuver node will be encountered, in seconds.
- Attribute:
Read-only, cannot be set
-
orbit:
SpaceCenter.Orbit# The orbit that results from executing the maneuver node.
- Attribute:
Read-only, cannot be set
- remove()#
Removes the maneuver node.
-
reference_frame:
SpaceCenter.ReferenceFrame# The reference frame that is fixed relative to the maneuver node’s burn.
The origin is at the position of the maneuver node.
The y-axis points in the direction of the burn.
The x-axis and z-axis point in arbitrary but fixed directions.
- Attribute:
Read-only, cannot be set
-
orbital_reference_frame:
SpaceCenter.ReferenceFrame# The reference frame that is fixed relative to the maneuver node, and orientated with the orbital prograde/normal/radial directions of the original orbit at the maneuver node’s position.
The origin is at the position of the maneuver node.
The x-axis points in the orbital anti-radial direction of the original orbit, at the position of the maneuver node.
The y-axis points in the orbital prograde direction of the original orbit, at the position of the maneuver node.
The z-axis points in the orbital normal direction of the original orbit, at the position of the maneuver node.
- Attribute:
Read-only, cannot be set
-
position(reference_frame:
SpaceCenter.ReferenceFrame):Tuple# The position vector of the maneuver node in the given reference frame.
- Parameters:
reference_frame – The reference frame that the returned position vector is in.
- Returns:
The position as a vector.
-
rotation(reference_frame:
SpaceCenter.ReferenceFrame):Tuple# The rotation of the maneuver nodes burn.
- Parameters:
reference_frame – The reference frame that the returned rotation is in.
- Returns:
The rotation as a quaternion of the form
(x, y, z, w).
-
direction(reference_frame:
SpaceCenter.ReferenceFrame):Tuple# The direction of the maneuver nodes burn.
- Parameters:
reference_frame – The reference frame that the returned direction is in.
- Returns:
The direction as a unit vector.
-
prograde: