Declared in FuelValve
Declaration
void SetState(
double percentOpen,
bool instantaneous
);Description
Commands the valve to a specific open fraction between 0 (closed) and 1 (fully open). The input value is clamped to the valid range of 0 to 1. The valve will actuate toward the commanded position at the configured angular velocity, or jump immediately if instantaneous mode is specified.
Parameters
| Name | Description |
|---|---|
| percentOpen | The desired valve position as a fraction from 0 (closed) to 1 (fully open). |
| instantaneous | If true, the valve position immediately jumps to the specified value. If false, the valve gradually actuates to the position over time. |