Skip to main content

Class: APLvlDirector

Defined in: src/sdk/autopilot/directors/APLvlDirector.ts:28

An autopilot director that generates flight director bank commands to level the wings (zero bank). Optionally sets the AUTOPILOT WING LEVELER SimVar state to true (1) when it is armed or activated, and to false (0) when it is deactivated.

The director requires valid bank data to arm or activate.

Implements

Constructors

Constructor

new APLvlDirector(apValues, options?): APLvlDirector

Defined in: src/sdk/autopilot/directors/APLvlDirector.ts:55

Creates a new instance of APLvlDirector.

Parameters

ParameterTypeDescription
apValuesAPValuesAutopilot values from this director's parent autopilot.
options?Readonly<APLvlDirectorOptions>Options to configure the new director.

Returns

APLvlDirector

Properties

driveBank()?

optional driveBank: (bank, rate?) => void

Defined in: src/sdk/autopilot/directors/APLvlDirector.ts:42

A function used to drive the autopilot commanded bank angle toward a desired value.

Parameters

ParameterType
banknumber
rate?number

Returns

void

Implementation of

PlaneDirector.driveBank


onActivate()?

optional onActivate: () => void

Defined in: src/sdk/autopilot/directors/APLvlDirector.ts:33

A callback called when this director is activated.

Returns

void

Implementation of

PlaneDirector.onActivate


onArm()?

optional onArm: () => void

Defined in: src/sdk/autopilot/directors/APLvlDirector.ts:36

A callback called when this director is armed.

Returns

void

Implementation of

PlaneDirector.onArm


onDeactivate()?

optional onDeactivate: () => void

Defined in: src/sdk/autopilot/directors/APLvlDirector.ts:39

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/APLvlDirector.ts:30

The current director state.

Implementation of

PlaneDirector.state

Methods

activate()

activate(): void

Defined in: src/sdk/autopilot/directors/APLvlDirector.ts:97

Activates this director.

Returns

void

Implementation of

PlaneDirector.activate


arm()

arm(): void

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

Arms this director.

Returns

void

Implementation of

PlaneDirector.arm


deactivate()

deactivate(): void

Defined in: src/sdk/autopilot/directors/APLvlDirector.ts:121

Deactivates this director.

Returns

void

Implementation of

PlaneDirector.deactivate


update()

update(): void

Defined in: src/sdk/autopilot/directors/APLvlDirector.ts:138

Updates this director.

Returns

void

Implementation of

PlaneDirector.update