Skip to main content

Class: FlightPlanSimSyncManager

Defined in: src/garminsdk/flightplan/FlightPlanSimSyncManager.ts:12

A manager for syncing the active flight plan to and from the sim.

Methods​

isAutoSyncing()​

isAutoSyncing(): boolean

Defined in: src/garminsdk/flightplan/FlightPlanSimSyncManager.ts:95

Checks whether this manager is automatically syncing the active flight plan to the sim.

Returns​

boolean

Whether this manager is automatically syncing the active flight plan to the sim.


loadFromSim()​

loadFromSim(flattenAirways): Promise<void>

Defined in: src/garminsdk/flightplan/FlightPlanSimSyncManager.ts:104

Loads the flight plan from the sim.

Parameters​

ParameterTypeDefault valueDescription
flattenAirwaysbooleanfalseWhether to flatten airways to their constituent legs. Defaults to false.

Returns​

Promise<void>

A Promise which is fulfilled when the flight plan has been loaded.


startAutoSync()​

startAutoSync(): void

Defined in: src/garminsdk/flightplan/FlightPlanSimSyncManager.ts:174

Starts automatically syncing the active flight plan to the sim.

Returns​

void


stopAutoSync()​

stopAutoSync(): void

Defined in: src/garminsdk/flightplan/FlightPlanSimSyncManager.ts:187

Stops automatically syncing the active flight plan to the sim.

Returns​

void


getManager()​

static getManager(bus, fms): Promise<FlightPlanSimSyncManager>

Defined in: src/garminsdk/flightplan/FlightPlanSimSyncManager.ts:71

Gets an instance of the flight plan sync manager.

Parameters​

ParameterTypeDescription
busEventBusThe event bus.
fmsFmsThe FMS.

Returns​

Promise<FlightPlanSimSyncManager>

A Promise which will be fulfilled with an instance of the flight plan sync manager when it is ready.