Skip to main content

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

NameTypeDescription
pidControllerOptionsFlcComputerOptionsThe PID controller settings for this computer.

Returns

GenericFlcComputer

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

NameTypeDescription
climbMode?booleanWhether 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

NameTypeDescription
setToClimbModebooleanWhether 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

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