Class: GenericFlcComputer
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:45
A Generic FLC computer to be used in directors that require FLC logic.
Constructors
Constructor
new GenericFlcComputer(
options):GenericFlcComputer
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:96
Creates an instance of GenericFlcComputer.
Parameters
| Parameter | Type | Description |
|---|---|---|
options | Readonly<FlcComputerOptions> | Options with which to configure the computer. |
Returns
GenericFlcComputer
Properties
_climbMode
protected_climbMode:boolean=false
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:55
_lastTime
protected_lastTime:number=0
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:64
_targetIas
protected_targetIas:number=0
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:54
apDataProvider?
protectedreadonlyoptionalapDataProvider:APDataProvider
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:47
filter
protectedfilter:ExpSmoother
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:66
getAcceleration()
protectedreadonlygetAcceleration: () =>number|null
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:51
Returns
number | null
getAoa()
protectedreadonlygetAoa: () =>number|null
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:50
Returns
number | null
getIas()
protectedreadonlygetIas: () =>number|null
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:48
Returns
number | null
getPitch()
protectedreadonlygetPitch: () =>number|null
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:49
Returns
number | null
pitchController
protectedreadonlypitchController:PidController
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:65
pitchTarget
readonlypitchTarget:Subscribable<number|null>
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:62
The current pitch target calculated by this computer, in degrees. Positive values indicate downward pitch. If this computer is not active or if a pitch target could not be calculated, then this value is null.
Accessors
isActive
Get Signature
get isActive():
boolean
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:72
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:88
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:78
This computer's target speed, in knots indicated airspeed.
Returns
number
Methods
activate()
activate(
climbMode?):void
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:172
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:199
Deactivates this computer.
Returns
void
getDesiredPitch()
protectedgetDesiredPitch():number
Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:234
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:184
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:192
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:216
Updates this director.
Returns
void