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
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
settingsManager | undefined | MetricAltitudeSettingsManager | The user settings manager controlling metric altitude preselector setting. Required to support metric mode. |
options | Readonly <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
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
Name | Type | Default value | Description |
---|---|---|---|
altitude | number | undefined | The altitude, in feet, to which to reset the selected altitude. |
resetInitialized | boolean | false | Whether 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
Name | Type | Description |
---|---|---|
isEnabled | boolean | Whether this manager is enabled. |
Returns
void
Defined in
src/sdk/autopilot/managers/AltitudeSelectManager.ts:307