Class: GenericFlcComputer
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:34
A Generic FLC computer to be used in directors that require FLC logic.
Constructors
Constructor
new GenericFlcComputer(
pidControllerOptions
):GenericFlcComputer
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:76
Creates an instance of GenericFlcComputer.
Parameters
Parameter | Type | Description |
---|---|---|
pidControllerOptions | FlcComputerOptions | The PID controller settings for this computer. |
Returns
GenericFlcComputer
Properties
_climbMode
protected
_climbMode:boolean
=false
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:38
_lastTime
protected
_lastTime:number
=0
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:44
_targetIas
protected
_targetIas:number
=0
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:37
filter
protected
filter:ExpSmoother
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:46
pitchTarget
readonly
pitchTarget:Subscribable
<null
|number
>
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:42
The current pitch target calculated by this computer, in degrees. Positive values indicate downward pitch.
Accessors
isActive
Get Signature
get isActive():
boolean
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:52
Gets if this computer is active
Returns
boolean
if this computer is active.
isClimbMode
Get Signature
get isClimbMode():
boolean
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:68
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
targetIas
Get Signature
get targetIas():
number
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:58
This computer's target speed, in knots indicated airspeed.
Returns
number
Methods
activate()
activate(
climbMode?
):void
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:95
Activates this computer.
Parameters
Parameter | 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
deactivate()
deactivate():
void
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:122
Deactivates this computer.
Returns
void
getDesiredPitch()
protected
getDesiredPitch():number
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:152
Gets a desired pitch when airborne to maintain a given speed.
Returns
number
The desired pitch angle.
setClimbMode()
setClimbMode(
setToClimbMode
):void
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:107
Turns climb mode on or off.
Parameters
Parameter | Type | Description |
---|---|---|
setToClimbMode | boolean | Whether climb mode should be turned on. |
Returns
void
setTargetSpeed()
setTargetSpeed(
ias
):void
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:115
Sets the target speed for this computer, in knots indicated airspeed.
Parameters
Parameter | Type | Description |
---|---|---|
ias | number | The target speed to set, in knots indicated airspeed. |
Returns
void
update()
update():
void
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:139
Updates this director.
Returns
void