Skip to main content

Class: AhrsSystemSelector

Defined in: src/garminsdk/system/AhrsSystemSelector.ts:54

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

Defined in: src/garminsdk/system/AhrsSystemSelector.ts:94

Creates a new instance of AhrsSystemSelector.

Parameters

ParameterTypeDescription
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

Properties

isSelectedAttitudeDataValid

readonly isSelectedAttitudeDataValid: Subscribable<boolean>

Defined in: src/garminsdk/system/AhrsSystemSelector.ts:64

Whether the selected AHRS is providing valid attitude data.


isSelectedHeadingDataValid

readonly isSelectedHeadingDataValid: Subscribable<boolean>

Defined in: src/garminsdk/system/AhrsSystemSelector.ts:68

Whether the selected AHRS is providing valid heading data.


selectedIndex

readonly selectedIndex: Subscribable<number>

Defined in: src/garminsdk/system/AhrsSystemSelector.ts:60

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

Methods

destroy()

destroy(): void

Defined in: src/garminsdk/system/AhrsSystemSelector.ts:229

Destroys this selector.

Returns

void


init()

init(): void

Defined in: src/garminsdk/system/AhrsSystemSelector.ts:121

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.