Type Alias: AhrsSystemSelectorOptions
AhrsSystemSelectorOptions =
object
Defined in: src/garminsdk/system/AhrsSystemSelector.ts:19
Configuration options for AhrsSystemSelector.
Properties
desirabilityComparator()?
optional
desirabilityComparator: (a
,b
) =>number
Defined in: src/garminsdk/system/AhrsSystemSelector.ts:36
A function that compares the desirability of two AHRS systems.
Parameters
Parameter | Type | Description |
---|---|---|
a | AhrsSystemSelectionState | The state of the first AHRS system. |
b | AhrsSystemSelectionState | The state of the second AHRS system. |
Returns
number
A number representing the relative desirability of the two AHRS systems: -1
if system a
is more
desirable than b
, 1
if system b
is more desirable than a
, and 0
if both are equally desirable.
systemPriorities?
optional
systemPriorities: readonlynumber
[] |ReadonlyMap
<number
,number
> |SubscribableMap
<number
,number
>
Defined in: src/garminsdk/system/AhrsSystemSelector.ts:27
The priorities for selecting individual AHRS systems. If two systems have the same desirability, then the one with
the higher priority will be selected. If a system's priority is not defined, then it will default to a value of
0
. The priorities can be specified as an array of AHRS system indexes or a map of AHRS system indexes to the
priorities for selecting those systems. If specified as an array of indexes, then each system whose index appears
in the array will be assigned a priority equal to array.length - array.indexOf(index)
.