Skip to main content

Class: APFLCDirector

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

An autopilot director that generates flight director pitch commands to hold an indicated airspeed or mach. Sets the AUTOPILOT FLIGHT LEVEL CHANGE SimVar state to true (1) when it is armed or activated, and to false (0) when it is deactivated.

The director requires valid pitch, indicated airspeed, mach, and indicated altitude data to arm or activate.

Implements

Constructors

Constructor

new APFLCDirector(apValues, options?): APFLCDirector

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

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

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

A callback called when this director is activated.

Returns

void

Implementation of

PlaneDirector.onActivate


onArm()?

optional onArm: () => void

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

A callback called when this director is armed.

Returns

void

Implementation of

PlaneDirector.onArm


onDeactivate()?

optional onDeactivate: () => void

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

A callback that is called when this director is deactivated.

Returns

void

Implementation of

PlaneDirector.onDeactivate


state

state: DirectorState

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

The current director state.

Implementation of

PlaneDirector.state

Methods

activate()

activate(): void

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

Activates this director.

Returns

void

Implementation of

PlaneDirector.activate


arm()

arm(): void

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

Arms this director.

Returns

void

Implementation of

PlaneDirector.arm


deactivate()

deactivate(): void

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

Deactivates this director.

Returns

void

Implementation of

PlaneDirector.deactivate


update()

update(): void

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

Updates this director.

Returns

void

Implementation of

PlaneDirector.update