Skip to main content

Class: AdcSystemSelector

Automatically selects the best ADC from a set of candidates based on the current states of all systems. System state desiribility depends on whether it is providing valid airspeed and altitude data.

Constructors

constructor

new AdcSystemSelector(bus, candidateSystemIndexes, options?): AdcSystemSelector

Creates a new instance of AdcSystemSelector.

Parameters

NameTypeDescription
busEventBusThe event bus.
candidateSystemIndexesIterable<number> | SubscribableSet<number>The indexes of the ADC systems from which to select.
options?Readonly<AdcSystemSelectorOptions>Options with which to configure the selector.

Returns

AdcSystemSelector

Defined in

src/garminsdk/system/AdcSystemSelector.ts:99

Properties

isSelectedAirspeedDataValid

Readonly isSelectedAirspeedDataValid: Subscribable<boolean>

Whether the selected ADC is providing valid airspeed data.

Defined in

src/garminsdk/system/AdcSystemSelector.ts:69


isSelectedAltitudeDataValid

Readonly isSelectedAltitudeDataValid: Subscribable<boolean>

Whether the selected ADC is providing valid altitude data.

Defined in

src/garminsdk/system/AdcSystemSelector.ts:65


isSelectedTemperatureDataValid

Readonly isSelectedTemperatureDataValid: Subscribable<boolean>

Whether the selected ADC is providing valid temperature data.

Defined in

src/garminsdk/system/AdcSystemSelector.ts:73


selectedIndex

Readonly selectedIndex: Subscribable<number>

The index of the selected ADC, or -1 if one could not be selected.

Defined in

src/garminsdk/system/AdcSystemSelector.ts:61

Methods

destroy

destroy(): void

Destroys this selector.

Returns

void

Defined in

src/garminsdk/system/AdcSystemSelector.ts:237


init

init(): void

Initializes this selector. Once initialized, this selector will automatically select the best ADC among its candidates.

Returns

void

Throws

Error if this selector has been destroyed.

Defined in

src/garminsdk/system/AdcSystemSelector.ts:126