CHARTS AIRCRAFT

The Charts aircraft is a preset of the WASM modular aircraft, which shows a simple example of the WebAssembly Charts API. Once the WASM Aircraft package has been built, this module will be available for flying from the aircraft selection screen:

Selecting The Charts Aircraft In The Simulation

 

The WasmModules.sln file (found in the Sources folder of the project) will allow you to compile the source-code with Microsoft Visual Studio (2019 or 2022) in order to create the ChartsModule.wasm WebAssembly module which will then be loaded by the game. Once compiled, the module will automatically be copied into the following folder:

[ROOT]\PackageSources\SimObjects\Airplanes\MyCompany_Wasm_Aircraft\presets\mycompany\ChartsAircraft\panel

 

Note that if you make changes to the C++ code and recompile the charts WASM module, you will have to build your package again. This can be done while the plane is used within the simulation.

 

 

Testing

Once you have built the aircraft and selected it, you can go into a Free Flight and you will see three panels in the cockpit:

The Cockpit Interior Of The Charts Aircraft

 

The two blank screens are not used in this example, and only the first screen used the Charts API. If you follow the text on the screen and click it, then a chart will be displayed:

A Random Chart Displayed By The WASM Charts API

 

You can then click on screen again and again to show random charts.