Skip to main content

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​

ParameterTypeDescription
pidControllerOptionsFlcComputerOptionsThe 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​

ParameterTypeDescription
climbMode?booleanWhether 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​

ParameterTypeDescription
setToClimbModebooleanWhether 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​

ParameterTypeDescription
iasnumberThe 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