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
| Parameter | Type | Description |
|---|---|---|
bus | EventBus | The event bus. |
candidateSystemIndexes | Iterable<number, any, any> | 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
readonlyisSelectedAttitudeDataValid:Subscribable<boolean>
Defined in: src/garminsdk/system/AhrsSystemSelector.ts:64
Whether the selected AHRS is providing valid attitude data.
isSelectedHeadingDataValid
readonlyisSelectedHeadingDataValid:Subscribable<boolean>
Defined in: src/garminsdk/system/AhrsSystemSelector.ts:68
Whether the selected AHRS is providing valid heading data.
selectedIndex
readonlyselectedIndex: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.