Skip to main content

Class: AdcSystemSelector

Defined in: src/garminsdk/system/AdcSystemSelector.ts:55

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

Defined in: src/garminsdk/system/AdcSystemSelector.ts:99

Creates a new instance of AdcSystemSelector.

Parameters​

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

Returns​

AdcSystemSelector

Properties​

isSelectedAirspeedDataValid​

readonly isSelectedAirspeedDataValid: Subscribable<boolean>

Defined in: src/garminsdk/system/AdcSystemSelector.ts:69

Whether the selected ADC is providing valid airspeed data.


isSelectedAltitudeDataValid​

readonly isSelectedAltitudeDataValid: Subscribable<boolean>

Defined in: src/garminsdk/system/AdcSystemSelector.ts:65

Whether the selected ADC is providing valid altitude data.


isSelectedTemperatureDataValid​

readonly isSelectedTemperatureDataValid: Subscribable<boolean>

Defined in: src/garminsdk/system/AdcSystemSelector.ts:73

Whether the selected ADC is providing valid temperature data.


selectedIndex​

readonly selectedIndex: Subscribable<number>

Defined in: src/garminsdk/system/AdcSystemSelector.ts:61

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

Methods​

destroy()​

destroy(): void

Defined in: src/garminsdk/system/AdcSystemSelector.ts:237

Destroys this selector.

Returns​

void


init()​

init(): void

Defined in: src/garminsdk/system/AdcSystemSelector.ts:126

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.