Skip to main content

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​

ParameterTypeDescription
optionsReadonly<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?​

protected readonly optional apDataProvider: APDataProvider

Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:47


filter​

protected filter: ExpSmoother

Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:66


getAcceleration()​

protected readonly getAcceleration: () => number | null

Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:51

Returns​

number | null


getAoa()​

protected readonly getAoa: () => number | null

Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:50

Returns​

number | null


getIas()​

protected readonly getIas: () => number | null

Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:48

Returns​

number | null


getPitch()​

protected readonly getPitch: () => number | null

Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:49

Returns​

number | null


pitchController​

protected readonly pitchController: PidController

Defined in: src/sdk/autopilot/calculators/GenericFlcComputer.ts:65


pitchTarget​

readonly pitchTarget: 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​

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:199

Deactivates this computer.

Returns​

void


getDesiredPitch()​

protected getDesiredPitch(): 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​

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

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