Description
The Open or Closed state of the valve. If all of the valves connected to a Thruster are closed, you can turn the Thruster off using the Thuster.ThrusterOn property to avoid unwanted error messages.
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 = myValve1.State;
myValve1.State = myVariable1;
|
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
Valve Object
Thruster.ThrusterOn
Valves Guide
|