Skip to main content

Class: AltitudeSelectManager

Controls the value of the autopilot selected altitude setting in response to key events.

Constructors

constructor

new AltitudeSelectManager(bus, settingsManager, options, stops?): AltitudeSelectManager

Creates a new instance of AltitudeSelectManager.

Parameters

NameTypeDescription
busEventBusThe event bus.
settingsManagerundefined | MetricAltitudeSettingsManagerThe user settings manager controlling metric altitude preselector setting. Required to support metric mode.
optionsReadonly<AltitudeSelectManagerOptions>Configuration options for this manager.
stops?Iterable<number> | SubscribableSet<number>Additional altitude stops, in feet, to respect when the selected altitude is incremented or decremented.

Returns

AltitudeSelectManager

Defined in

src/sdk/autopilot/managers/AltitudeSelectManager.ts:230

Methods

pause

pause(): void

Pauses this manager. When paused, this manager will not respond to key events that manipulate selected altitude. If this manager is disabled, it will still pass through key events while paused.

Returns

void

Defined in

src/sdk/autopilot/managers/AltitudeSelectManager.ts:323


reset

reset(altitude, resetInitialized?): void

Resets the selected altitude to a specific value and optionally sets the initialized state of the selected altitude to uninitialized.

Parameters

NameTypeDefault valueDescription
altitudenumberundefinedThe altitude, in feet, to which to reset the selected altitude.
resetInitializedbooleanfalseWhether to reset the initialized state of the selected altitude to uninitialized. Defaults to false.

Returns

void

Defined in

src/sdk/autopilot/managers/AltitudeSelectManager.ts:334


resume

resume(): void

Resumes this manager. When resumed, this manager will respond to key events that manipulate selected altitude.

Returns

void

Defined in

src/sdk/autopilot/managers/AltitudeSelectManager.ts:315


setEnabled

setEnabled(isEnabled): void

Sets whether this manager is enabled. When this manager is disabled, all key events to change the selected altitude setting are processed "as-is".

Parameters

NameTypeDescription
isEnabledbooleanWhether this manager is enabled.

Returns

void

Defined in

src/sdk/autopilot/managers/AltitudeSelectManager.ts:307