Skip to main content

Class: FmsPositionSystemSelector

Automatically selects the best FMS geo-positioning system from a set of candidates based on the accuracy of their provided positioning data.

Constructors

constructor

new FmsPositionSystemSelector(bus, enabledSystemIndexes, preferredSystemIndex?): FmsPositionSystemSelector

Constructor.

Parameters

NameTypeDescription
busEventBusThe event bus.
enabledSystemIndexesIterable<number> | SubscribableSet<number>The indexes of the FMS geo-positioning systems from which to select.
preferredSystemIndex?number | Subscribable<number>The index of this selector's preferred system, or -1 if there is no such system This selector is guaranteed to select the preferred system if its state is at least as desirable as the state of all other systems from which to select.

Returns

FmsPositionSystemSelector

Defined in

src/garminsdk/navigation/FmsPositionSystemSelector.ts:47

Properties

selectedFmsPosMode

Readonly selectedFmsPosMode: Subscribable<FmsPositionMode>

The positioning mode of the selected FMS geo-positioning system.

Defined in

src/garminsdk/navigation/FmsPositionSystemSelector.ts:28


selectedIndex

Readonly selectedIndex: Subscribable<number>

The index of the selected FMS geo-positioning system, or -1 if no system could be selected.

Defined in

src/garminsdk/navigation/FmsPositionSystemSelector.ts:24

Methods

destroy

destroy(): void

Destroys this manager.

Returns

void

Defined in

src/garminsdk/navigation/FmsPositionSystemSelector.ts:144


init

init(): void

Initializes this selector. Once initialized, this selector will automatically select the FMS geo-positioning system that currently provides the most accurate position data.

Returns

void

Throws

Error if this selector has been destroyed.

Defined in

src/garminsdk/navigation/FmsPositionSystemSelector.ts:71