Skip to main content

Class: APAltDirector

Defined in: src/sdk/autopilot/directors/APAltDirector.ts:14

An altitude hold autopilot director.

Implements

Constructors

Constructor

new APAltDirector(apValues): APAltDirector

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

Creates an instance of the LateralDirector.

Parameters

ParameterTypeDescription
apValuesAPValuesare the ap selected values for the autopilot.

Returns

APAltDirector

Properties

drivePitch()?

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

Defined in: src/sdk/autopilot/directors/APAltDirector.ts:19

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/APAltDirector.ts:22

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/APAltDirector.ts:25

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/APAltDirector.ts:16

The current director state.

Implementation of

PlaneDirector.state

Methods

activate()

activate(): void

Defined in: src/sdk/autopilot/directors/APAltDirector.ts:59

Activates this director.

Returns

void

Implementation of

PlaneDirector.activate


arm()

arm(): void

Defined in: src/sdk/autopilot/directors/APAltDirector.ts:72

Arms this director. This director has no armed mode, so it activates immediately.

Returns

void

Implementation of

PlaneDirector.arm


deactivate()

deactivate(): void

Defined in: src/sdk/autopilot/directors/APAltDirector.ts:83

Deactivates this director.

Returns

void

Implementation of

PlaneDirector.deactivate


update()

update(): void

Defined in: src/sdk/autopilot/directors/APAltDirector.ts:92

Updates this director.

Returns

void

Implementation of

PlaneDirector.update