Skip to main content

Class: APFLCDirector

Defined in: src/sdk/autopilot/directors/APFLCDirector.ts:64

A Flight Level Change autopilot director.

Implements

Constructors

Constructor

new APFLCDirector(apValues, options?): APFLCDirector

Defined in: src/sdk/autopilot/directors/APFLCDirector.ts:100

Creates a new instance of APFLCDirector.

Parameters

ParameterTypeDescription
apValuesAPValuesAutopilot values from this director's parent autopilot.
options?Partial<Readonly<APFLCDirectorOptions>>Options to configure the new director. Option values default to the following if not defined: * maxPitchUpAngle: 15 * maxPitchDownAngle: 15 * setSpeedOnActivation: A function which sets the selected IAS or mach target to the airplane's current IAS or mach, depending on whether IAS or mach is currently being targeted.

Returns

APFLCDirector

Properties

drivePitch()?

optional drivePitch: (pitch, adjustForAoa?, adjustForVerticalWind?) => void

Defined in: src/sdk/autopilot/directors/APFLCDirector.ts:77

A function used to drive the autopilot commanded pitch angle toward a desired value while optionally correcting for angle of attack and vertical wind.

Parameters

ParameterType
pitchnumber
adjustForAoa?boolean
adjustForVerticalWind?boolean

Returns

void

Implementation of

PlaneDirector.drivePitch


onActivate()?

optional onActivate: () => void

Defined in: src/sdk/autopilot/directors/APFLCDirector.ts:71

A callback called when a mode signals it should be activated.

Returns

void

Implementation of

PlaneDirector.onActivate


onArm()?

optional onArm: () => void

Defined in: src/sdk/autopilot/directors/APFLCDirector.ts:74

A callback called when a mode signals it should be armed.

Returns

void

Implementation of

PlaneDirector.onArm


state

state: DirectorState

Defined in: src/sdk/autopilot/directors/APFLCDirector.ts:66

The current director state.

Implementation of

PlaneDirector.state

Methods

activate()

activate(): void

Defined in: src/sdk/autopilot/directors/APFLCDirector.ts:136

Activates this director.

Returns

void

Implementation of

PlaneDirector.activate


arm()

arm(): void

Defined in: src/sdk/autopilot/directors/APFLCDirector.ts:184

Arms this director. This director can be armed, but it will never automatically activate and remain in the armed state. Therefore we do not resume subs until activation.

Returns

void

Implementation of

PlaneDirector.arm


deactivate()

deactivate(): void

Defined in: src/sdk/autopilot/directors/APFLCDirector.ts:192

Deactivates this director.

Returns

void

Implementation of

PlaneDirector.deactivate


update()

update(): void

Defined in: src/sdk/autopilot/directors/APFLCDirector.ts:201

Updates this director.

Returns

void

Implementation of

PlaneDirector.update