FLOW AIRCRAFT

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

Selecting The Flow 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 FlowModule.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\FlowAircraft\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 that illustrate the reception of flow events:

The Flow Aircraft Gauges On Flight Start

 

These screens correspond to WebAssembly, JavaScript, and SimConnect implementations of the Flow API. Depending on the situation the information they show will change, for example, if you restart the flight then the information shown will change:

The Flow Aircraft Gauges After Receiving A Flow Event

 

Note too that you can use the Debug Platform Dispatcher tool to simulate different flow events and these will also be reflected in the screens of the aircraft (assuming they are not unregistered).