Skip to main content

Class: FlightPlanAsoboSync

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/FlightPlanAsoboSync.ts:12

A class for syncing a flight plan with the game

Constructors​

Constructor​

new FlightPlanAsoboSync(): FlightPlanAsoboSync

Returns​

FlightPlanAsoboSync

Properties​

fpListenerInitialized​

static fpListenerInitialized: boolean = false

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/FlightPlanAsoboSync.ts:14

Methods​

init()​

static init(): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/FlightPlanAsoboSync.ts:28

Inits flight plan asobo sync

Returns​

Promise<void>


loadFromGame()​

static loadFromGame(fms): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/FlightPlanAsoboSync.ts:46

Loads the flight plan from the sim.

Parameters​

ParameterTypeDescription
fmsFmsThe fms.

Returns​

Promise<void>

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


SaveToGame()​

static SaveToGame(fms): Promise<void>

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/FlightPlanAsoboSync.ts:123

Syncs the plan back to the sim as best as possible

Parameters​

ParameterTypeDescription
fmsFmsan instance of FMS

Returns​

Promise<void>