Skip to main content

Class: APTogaPitchDirector

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

An autopilot director that generates flight director pitch commands to hold a pitch attitude and sets the L:WT_TOGA_ACTIVE SimVar state to true (1) when it is armed or activated, and to false (0) when it is deactivated.

If the director is created with access to an APValues object, then the director requires valid pitch data to arm or activate.

Extended by​

Implements​

Constructors​

Constructor​

new APTogaPitchDirector(apValues, options?): APTogaPitchDirector

Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:67

Creates a new instance of APTogaPitchDirector.

Parameters​

ParameterTypeDescription
apValuesAPValuesAutopilot values from this director's parent autopilot.
options?Readonly<APTogaPitchDirectorOptions>Options with which to configure this director.

Returns​

APTogaPitchDirector

Constructor​

new APTogaPitchDirector(targetPitchAngle?): APTogaPitchDirector

Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:75

Creates a new instance of APTogaPitchDirector.

Parameters​

ParameterTypeDescription
targetPitchAngle?numberThe target pitch angle set by this director when activated, in degrees. Positive values indicate upward pitch. Defaults to 10.

Returns​

APTogaPitchDirector

Deprecated​

Please use the constructor overload that takes an APValues object and options object as arguments instead.

Properties​

drivePitch()?​

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

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

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
rate?number
maxNoseDownPitch?number
maxNoseUpPitch?number

Returns​

void

Implementation of​

PlaneDirector.drivePitch


onActivate()?​

optional onActivate: () => void

Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:41

A callback called when this director is activated.

Returns​

void

Implementation of​

PlaneDirector.onActivate


onArm()?​

optional onArm: () => void

Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:44

A callback called when this director is armed.

Returns​

void

Implementation of​

PlaneDirector.onArm


onDeactivate()?​

optional onDeactivate: () => void

Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:47

A callback that is called when this director is deactivated.

Returns​

void

Implementation of​

PlaneDirector.onDeactivate


setPitch()?​

optional setPitch: (pitch) => void

Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:53

A callback called to set an exact AP pitch target.

Parameters​

ParameterType
pitchnumber

Returns​

void

Implementation of​

PlaneDirector.setPitch


state​

state: DirectorState

Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:38

The current director state.

Implementation of​

PlaneDirector.state

Methods​

activate()​

activate(): void

Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:137

Activates this director.

Returns​

void

Implementation of​

PlaneDirector.activate


arm()​

arm(): void

Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:158

Arms this director.

Returns​

void

Implementation of​

PlaneDirector.arm


deactivate()​

deactivate(): void

Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:165

Deactivates this director.

Returns​

void

Implementation of​

PlaneDirector.deactivate


update()​

update(): void

Defined in: src/sdk/autopilot/directors/APTogaPitchDirector.ts:182

Updates this director.

Returns​

void

Implementation of​

PlaneDirector.update