Skip to main content

Class: AltitudeAlerter

Maintains an altitude alert state based on the relationship between indicated altitude and selected altitude.

Constructors

constructor

new AltitudeAlerter(index, bus, adcIndex): AltitudeAlerter

Creates an instance of AltitudeAlerter.

Parameters

NameTypeDescription
indexnumberThe index of this alerter.
busEventBusThe event bus.
adcIndexnumber | Subscribable<number>The index of the ADC from which this alerter sources indicated altitude data.

Returns

AltitudeAlerter

Defined in

src/garminsdk/components/nextgenpfd/altimeter/AltitudeAlerter.ts:95

Properties

index

Readonly index: number

The index of this alerter.

Defined in

src/garminsdk/components/nextgenpfd/altimeter/AltitudeAlerter.ts:95


state

Readonly state: Subscribable<AltitudeAlertState>

Defined in

src/garminsdk/components/nextgenpfd/altimeter/AltitudeAlerter.ts:43

Methods

destroy

destroy(): void

Destroys this alerter. Once destroyed, this alerter will no longer update its alert state.

Returns

void

Defined in

src/garminsdk/components/nextgenpfd/altimeter/AltitudeAlerter.ts:293


init

init(): void

Initializes this alerter. Once initialized, this alerter will continuously update its alert state until destroyed.

Returns

void

Throws

Error if this alerter is dead.

Defined in

src/garminsdk/components/nextgenpfd/altimeter/AltitudeAlerter.ts:103