Class: FlightPlanSimSyncManager
A manager for syncing the active flight plan to and from the sim.
Methods
isAutoSyncing
▸ isAutoSyncing(): boolean
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.
Defined in
src/garminsdk/flightplan/FlightPlanSimSyncManager.ts:95
loadFromSim
▸ loadFromSim(flattenAirways?
): Promise
<void
>
Loads the flight plan from the sim.
Parameters
Name | 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.
Defined in
src/garminsdk/flightplan/FlightPlanSimSyncManager.ts:104
startAutoSync
▸ startAutoSync(): void
Starts automatically syncing the active flight plan to the sim.
Returns
void
Defined in
src/garminsdk/flightplan/FlightPlanSimSyncManager.ts:174
stopAutoSync
▸ stopAutoSync(): void
Stops automatically syncing the active flight plan to the sim.
Returns
void
Defined in
src/garminsdk/flightplan/FlightPlanSimSyncManager.ts:187
getManager
▸ getManager(bus
, fms
): Promise
<FlightPlanSimSyncManager
>
Gets an instance of the flight plan sync manager.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
fms | Fms <any > | The FMS. |
Returns
Promise
<FlightPlanSimSyncManager
>
A Promise which will be fulfilled with an instance of the flight plan sync manager when it is ready.
Defined in
src/garminsdk/flightplan/FlightPlanSimSyncManager.ts:71