Description
Determines whether a thruster is on or off. Individual valves connected to a Thruster can also be opened or closed using the Valve.State property.
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.
Attributes
Type:
|
boolean
|
Access:
|
read/write
|
Default Value:
|
true
|
Syntax
myVariable1 = myThruster1.ThrusterOn;
myThruster1.ThrusterOn = myVariable1;
|
The following example shows how to close one of the valves connected to a Thruster, but still keep the Thruster on.
Spacecraft1.Thruster1.Valves[0].State = 0;
Spacecraft1.Thruster1.Valves[1].State = 1;
Spacecraft1.Thruster1.ThrusterOn = 1;
|
|
The following example shows how to close the valves connected to a Thruster and turn off the Thruster. This is useful when the Spacecraft has multiple Thrusters, and one of the Thrusters will not be used for a particular maneuver. If the Valves were closed but the Thruster was not turned off, an unwanted error would occur: "No tank available to fuel thruster; either no tanks are attached to the thruster, or the valve for the tank is closed."
Spacecraft1.Thruster1.Valves[0].State = 0;
Spacecraft1.Thruster1.Valves[1].State = 0;
Spacecraft1.Thruster1.ThrusterOn = 0;
Spacecraft1.Thruster2.ThrusterOn = 1;
|
|
See also
Thruster Object
Valve.State
Thrusters Guide
|