Skip to main content

Class: APPitchDirector

Defined in: src/sdk/autopilot/directors/APPitchDirector.ts:35

An autopilot director that generates flight director pitch commands to hold a pitch attitude.

The director requires valid pitch data to arm or activate.

Implements

Constructors

Constructor

new APPitchDirector(bus, apValues, pitchIncrement?, minPitch?, maxPitch?): APPitchDirector

Defined in: src/sdk/autopilot/directors/APPitchDirector.ts:70

Creates a new instance of APPitchDirector.

Parameters

ParameterTypeDescription
busEventBus-
apValuesAPValues-
pitchIncrement?numberis the pitch increment, in degrees, to use when the user presses the pitch inc/dec keys (default: 0.5)
minPitch?numberis the negative minimum pitch angle, in degrees, to clamp the pitch to. (default: -15)
maxPitch?numberis the positive maximum pitch angle, in degrees, to clamp the pitch to. (default: 20)

Returns

APPitchDirector

Deprecated

Use APPitchDirectorOptions instead.

Constructor

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

Defined in: src/sdk/autopilot/directors/APPitchDirector.ts:87

Creates a new instance of APPitchDirector.

Parameters

ParameterTypeDescription
busEventBusThe event bus to use with this instance.
apValuesAPValuesare the AP Values subjects.
options?Partial<Readonly<APPitchDirectorOptions>>Options to configure the new director. Option values default to the following if not defined: * pitchIncrement: 0.5 * minPitch: -15 * maxPitch: 20 * quantisePitch: false

Returns

APPitchDirector

Properties

maxPitch()

protected readonly maxPitch: () => number

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

Returns

number


minPitch()

protected readonly minPitch: () => number

Defined in: src/sdk/autopilot/directors/APPitchDirector.ts:57

Returns

number


onActivate()?

optional onActivate: () => void

Defined in: src/sdk/autopilot/directors/APPitchDirector.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/APPitchDirector.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/APPitchDirector.ts:47

A callback that is called when this director is deactivated.

Returns

void

Implementation of

PlaneDirector.onDeactivate


pitchIncrement()

protected readonly pitchIncrement: () => number

Defined in: src/sdk/autopilot/directors/APPitchDirector.ts:56

Returns

number


quantisePitch

protected readonly quantisePitch: boolean

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


setPitch()?

optional setPitch: (pitch) => void

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

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/APPitchDirector.ts:38

The current director state.

Implementation of

PlaneDirector.state

Methods

activate()

activate(): void

Defined in: src/sdk/autopilot/directors/APPitchDirector.ts:160

Activates this director.

Returns

void

Implementation of

PlaneDirector.activate


arm()

arm(): void

Defined in: src/sdk/autopilot/directors/APPitchDirector.ts:177

Arms this director.

Returns

void

Implementation of

PlaneDirector.arm


deactivate()

deactivate(): void

Defined in: src/sdk/autopilot/directors/APPitchDirector.ts:184

Deactivates this director.

Returns

void

Implementation of

PlaneDirector.deactivate


update()

update(): void

Defined in: src/sdk/autopilot/directors/APPitchDirector.ts:199

Updates this director.

Returns

void

Implementation of

PlaneDirector.update