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
Parameter | Type | Default value | Description |
---|---|---|---|
flattenAirways | boolean | false | Whether 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
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
fms | Fms | The FMS. |
Returns
Promise
<FlightPlanSimSyncManager
>
A Promise which will be fulfilled with an instance of the flight plan sync manager when it is ready.