Skip to main content

Class: AhrsSystemSelector

Automatically selects the best AHRS 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 AhrsSystemSelector(bus, candidateSystemIndexes, options?): AhrsSystemSelector

Creates a new instance of AhrsSystemSelector.

Parameters

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

Returns

AhrsSystemSelector

Defined in

src/garminsdk/system/AhrsSystemSelector.ts:94

Properties

isSelectedAttitudeDataValid

Readonly isSelectedAttitudeDataValid: Subscribable<boolean>

Whether the selected AHRS is providing valid attitude data.

Defined in

src/garminsdk/system/AhrsSystemSelector.ts:64


isSelectedHeadingDataValid

Readonly isSelectedHeadingDataValid: Subscribable<boolean>

Whether the selected AHRS is providing valid heading data.

Defined in

src/garminsdk/system/AhrsSystemSelector.ts:68


selectedIndex

Readonly selectedIndex: Subscribable<number>

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

Defined in

src/garminsdk/system/AhrsSystemSelector.ts:60

Methods

destroy

destroy(): void

Destroys this selector.

Returns

void

Defined in

src/garminsdk/system/AhrsSystemSelector.ts:229


init

init(): void

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

Returns

void

Throws

Error if this selector has been destroyed.

Defined in

src/garminsdk/system/AhrsSystemSelector.ts:121