Skip to main content

Class: APTrkDirector

Defined in: src/sdk/autopilot/directors/APTrkDirector.ts:50

An autopilot director that generates flight director bank commands to hold a magnetic ground track. Optionally sets the AUTOPILOT HEADING LOCK SimVar state to true (1) when it is armed or activated, and to false (0) when it is deactivated.

The director requires valid bank and magnetic ground track data to arm or activate.

Implements​

Constructors​

Constructor​

new APTrkDirector(bus, apValues, options?): APTrkDirector

Defined in: src/sdk/autopilot/directors/APTrkDirector.ts:86

Creates a new instance of APTrkDirector.

Parameters​

ParameterTypeDescription
busEventBusThe event bus to use with this instance.
apValuesAPValuesAutopilot values from this director's parent autopilot.
options?Readonly<APTrkDirectorOptions>Options to configure the new director.

Returns​

APTrkDirector

Properties​

driveBank()?​

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

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

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/APTrkDirector.ts:55

A callback called when this director is activated.

Returns​

void

Implementation of​

PlaneDirector.onActivate


onArm()?​

optional onArm: () => void

Defined in: src/sdk/autopilot/directors/APTrkDirector.ts:58

A callback called when this director is armed.

Returns​

void

Implementation of​

PlaneDirector.onArm


onDeactivate()?​

optional onDeactivate: () => void

Defined in: src/sdk/autopilot/directors/APTrkDirector.ts:61

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/APTrkDirector.ts:52

The current director state.

Implementation of​

PlaneDirector.state

Methods​

activate()​

activate(): void

Defined in: src/sdk/autopilot/directors/APTrkDirector.ts:143

Activates this director.

Returns​

void

Implementation of​

PlaneDirector.activate


arm()​

arm(): void

Defined in: src/sdk/autopilot/directors/APTrkDirector.ts:162

Arms this director.

Returns​

void

Implementation of​

PlaneDirector.arm


deactivate()​

deactivate(): void

Defined in: src/sdk/autopilot/directors/APTrkDirector.ts:169

Deactivates this director.

Returns​

void

Implementation of​

PlaneDirector.deactivate


update()​

update(): void

Defined in: src/sdk/autopilot/directors/APTrkDirector.ts:186

Updates this director.

Returns​

void

Implementation of​

PlaneDirector.update