a32nx.lua
Location
Description
This script was written for FlyByWire A32NX.
This is more complex than the above two scripts. This script provides the integrated virtual cockpit which contains physical operable units such as buttons and knobs, touch controllable units on the monitor, and popped out window contents such as PFD.
This script includes several sub-module scripts, and it also uses several bitmap images to render each operable units.
In this script, you can see the following example usage of fsmapper in addition to g1000_x56.lua
case.
- Observing the aircraft status represented by RPN script
- Drawing graphics on the screen
- Handling the touch events and mouse events occurred on the screen
This script defines following 6 views. Every view consist a MSFS popped out instrument window and self rendered operable gauges.
Popped out instruments | Self rendered operable units | |
---|---|---|
1 | PFD | FCU display buttons on the FCU BARO indicator |
2 | ND | buttons and toggle switches on the EFIS control unit auto brake buttons etc |
3 | Upper ECAM | engine mode selectors, master engine switch and engine status indicators APU control switches battery control switches and voltage indicators |
4 | Lower ECAM | ECAM page selector buttons |
5 | MCDU | MCDU buttons |
6 | EFB | - |
The width of every view except EFB is a half width of the SimHID monitor width. So two views can be displayed simultaneously side by side.
By pressing soft-keys placed at bottom of SimHID G1000, two views to show can be specified.
And the switches placed on the left end and the right end of SimHID G1000 housing (AUX switches) can also control views to show.
When you operate the AUX switch up or down, it will sequentially switch between three preset left-right view combinations.
Pressing the AUX switch toggles between EFB display mode and other instrument display modes.
The pushbuttons rendered on each view can be operated by tapping them. The toggle switches include engine master switches and the selector knobs can be operated by flicking them. The correspondence between SimHID G1000 operations and A32NX operations are shown below.
SimHID G1000 operations | A32NX operations |
---|---|
NAV volume knob | SPD/Mac knob on FCU The pull operation is emulated by a long press |
NAV swap button | Pulling Speed Knob on FUC |
HDG knob | HDG/TRK knob on FCU The pull operation is emulated by a long press |
HDG button | Pulling HDG/TRK knob on FCU |
AP button | AP1 button on FCU |
FD button | FD button on EFIS |
APR button | APPR button on FCU |
ALT outer knob | Increase / Decrease altitude indicator on FCU by 1000 feet |
ALT inner knob | Increase / Decrease altitude indicator on FCU by 100 feet |
ALT knob push button | Pushing ALT knob on FCU The pull operation is emulated by a long press |
FLC button | Pulling ALT knob on FCU |
COM volume knob | V/S or FPA knob on FCU The pull operation is emulated by a long press |
COM swap button | Pulling V/S or FPA knob on FCU |
COM knob | Frequency selector knob on RMP panel |
BARO knob rotation | Manipulation of the value displayed in the barometer reference window |
BARO knob push button | Switching barometer reference mode between QNH and standard barometer reference |
Range knob rotation | Range selector switch on EFIS |
Range knob joystick | Changing the mode displayed on the respective ND |
NAV inner knob | Adjusting the brightness of PFD, ND, upper ECAM, and lower ECAM in sync |
NAV outer knob | Adjusting the brightness of both the weather rader image and the EGPWS terrain image on ND |
FMS inner knob | Adjusting the brightness of FCU display |
FMS outer knob | Adjusting the brightness of all glareshields in sync |