Class: GenericFlcComputer
A Generic FLC computer to be used in directors that require FLC logic.
Constructors
constructor
• new GenericFlcComputer(pidControllerOptions
): GenericFlcComputer
Creates an instance of GenericFlcComputer.
Parameters
Name | Type | Description |
---|---|---|
pidControllerOptions | FlcComputerOptions | The PID controller settings for this computer. |
Returns
Defined in
src/sdk/autopilot/calculators/GenericFlcComputer.ts:76
Properties
pitchTarget
• Readonly
pitchTarget: Subscribable
<null
| number
>
The current pitch target calculated by this computer, in degrees. Positive values indicate downward pitch.
Defined in
src/sdk/autopilot/calculators/GenericFlcComputer.ts:42
Accessors
isActive
• get
isActive(): boolean
Gets if this computer is active
Returns
boolean
if this computer is active.
Defined in
src/sdk/autopilot/calculators/GenericFlcComputer.ts:52
isClimbMode
• get
isClimbMode(): boolean
Whether this computer is in climb mode. In climb mode, the computer will not target a pitch that would cause the airplane to descend. When not in climb mode, the computer will not target a pitch that would cause the airplane to climb.
Returns
boolean
Defined in
src/sdk/autopilot/calculators/GenericFlcComputer.ts:68
targetIas
• get
targetIas(): number
This computer's target speed, in knots indicated airspeed.
Returns
number
Defined in
src/sdk/autopilot/calculators/GenericFlcComputer.ts:58
Methods
activate
▸ activate(climbMode?
): void
Activates this computer.
Parameters
Name | Type | Description |
---|---|---|
climbMode? | boolean | Whether to force climb mode on (true ) or off (false ) on activation. If undefined, the climb mode state will remain unchanged. |
Returns
void
Defined in
src/sdk/autopilot/calculators/GenericFlcComputer.ts:95
deactivate
▸ deactivate(): void
Deactivates this computer.
Returns
void
Defined in
src/sdk/autopilot/calculators/GenericFlcComputer.ts:122
setClimbMode
▸ setClimbMode(setToClimbMode
): void
Turns climb mode on or off.
Parameters
Name | Type | Description |
---|---|---|
setToClimbMode | boolean | Whether climb mode should be turned on. |
Returns
void
Defined in
src/sdk/autopilot/calculators/GenericFlcComputer.ts:107
setTargetSpeed
▸ setTargetSpeed(ias
): void
Sets the target speed for this computer, in knots indicated airspeed.
Parameters
Name | Type | Description |
---|---|---|
ias | number | The target speed to set, in knots indicated airspeed. |
Returns
void
Defined in
src/sdk/autopilot/calculators/GenericFlcComputer.ts:115
update
▸ update(): void
Updates this director.
Returns
void
Defined in
src/sdk/autopilot/calculators/GenericFlcComputer.ts:139