-
-
Notifications
You must be signed in to change notification settings - Fork 126
WinWing CDU developer instructions
Caution
This guide is obsolete. See the updated guide for information on developing additional aircraft support for WINWING CDU devices.
For each supported plane a python script will be shipped with MobiFlight. The python script fetches the data from the plane interface and pushes it to the MobiFlight websocket interface. Everyone can contribute those python scripts and after an evaluation, we might add them. For questions ask in the MobiFlight discord using the "development channel".
The currently provided scripts can be found in the MobiFlight installation folder in \Scripts\Winwing
. For example \Scripts\Winwing\fenix_winwing_cdu.py
Please try to minimize the use of extra python packages. Use the same packages as already used in other existing scripts. For example "websockets" or "gql" in the fenix example. Also put everything in one python file.
ws://localhost:8320/winwing/cdu-captain
ws://localhost:8320/winwing/cdu-co-pilot
ws://localhost:8320/winwing/cdu-observer
Json structure with a list of 336 elements in the Data section for the 336 possible chars on the CDU.
- Each list element is a triplet.
- The character to be shown as UTF-8 string
- The color as UTF-8 string
- The size as a number (0 large, 1 small).
- For empty character "SPACE", also an empty list element [] can be used, instead of [" ", "w", 0].
"a" // amber
"w" // white
"c" // cyan
"g" // green
"m" // magenta
"r" // red
"y" // yellow
"o" // brown
"e" // grey
"k" // kahki
For special chars like <- or -> use the unicode syntax. For example in python:
'\u2610' # ballot box
'\u2191' # up arrow
'\u2193' # down arrow
'\u2192' # right arrow
'\u2190' # left arrow
'\u0394' # greek delta for overfly
{
"Target": "Display",
"Data": [ [], [], [], [], [], [], [], ["M", "w", 0], ["C", "w", 0], ["D", "w", 0], ["U", "w", 0], ... ]
}
Full example:
{"Target": "Display",
"Data": [[], [], [], [], [], [], [], ["M", "w", 0], ["C", "w", 0], ["D", "w", 0], ["U", "w", 0], [], ["M", "w", 0], ["E", "w", 0], ["N", "w", 0],
["U", "w", 0], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [],
["<", "g", 0], ["F", "g", 0], ["M", "g", 0], ["G", "g", 0], ["C", "g", 0], [], [], [], [], [], [], [], [], [], [], [], [], ["C", "w", 0],
["O", "w", 0], ["N", "w", 0], ["F", "w", 0], ["I", "w", 0], ["G", "w", 0], [">", "w", 0], [], [], [], [], [], [], [], [], [], [], [], [], [], [],
[], [], [], [], [], [], [], [], [], [], ["<", "w", 0], ["A", "w", 0], ["T", "w", 0], ["S", "w", 0], ["U", "w", 0], [], [], [], [], [], [], [], [],
[], [], [], [], [], ["M", "w", 0], ["A", "w", 0], ["I", "w", 0], ["N", "w", 0], ["T", "w", 0], [">", "w", 0], [], [], [], [], [], [], [], [], [],
[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [],
[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [],
[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [],
[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [],
[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [],
["S", "w", 0], ["E", "w", 0], ["L", "w", 0], ["E", "w", 0], ["C", "w", 0], ["T", "w", 0], [], ["D", "w", 0], ["E", "w", 0], ["S", "w", 0],
["I", "w", 0], ["R", "w", 0], ["E", "w", 0], ["D", "w", 0], [], ["S", "w", 0], ["Y", "w", 0], ["S", "w", 0], ["T", "w", 0], ["E", "w", 0],
["M", "w", 0], [], [], []]}
- MobiFlight Connector Installation
- Mobiflight Connector BETA version installation
- Modules
- MobiFlight Connector Files Structure
- MobiFlight Connector Uninstall
- Modules Reset to factory default
- Verifying the WASM module installation and locating the MSFS2020 community folder
- Verifying the WASM module installation and locating the MSFS2024 community folder
- Using a Winwing FCU with MobiFlight
- Using VKB controllers with MobiFlight
- Providing logs from MobiFlight
- MobiFlight Connector How does it work
- Mobiflight Connector Main Window
- Flash module with MobiFlight firmware
- Input and Output devices
- Joysticks
- Midi Boards
- Sim Variables (for Output)
- Input Actions
- Merging configuration files
- Disabling specific COM ports
- Examples Output LEDs
- Examples Input Switch
- Example 7 segment display
- Example Servo motor
- Controlling LEDs with an output shift register
- Adding lots of buttons with an input shift register
- Beginner's guide to input multiplexers
- Key Matrix with standard MobiFlight and Multiplexers
- Tutorial Easy Driver and x.27 or x.40 Stepper Motor
- Tutorial for Airbus VS display via 7-Segment LED Module
- Example Analog Input Potentiometer
- Baron G58 Tutorial Gear, Flaps, Mags, ELT Input Output Programming
- Using Mobiflight to control arduino-based 3rd party panels (RealSimGear GNS530)
- How to use a VNH2SP30 DC motor shield with MobiFlight
- Using 3D printer mainboards
- Playing sounds by sending keystrokes to AutoHotKey
- Using the selector knob on a Honeycomb Bravo
- Using an adjustable 12 position switch as a GA starter
- Brightness of LCD displays with I2C
- Using three-position switches
- Transponder with one Rotary
- Workflow for Creating Flight Simulation Panels ‐ Part 1
- MSFS2020 RPN Tips and Tricks
- MSFS2020 Using the Custom Input Code Box
- MSFS2020 Install WASM module and Event List
- MSFS2020 How to Create and Use User Defined Lvars
- MSFS2020 How to Create a Blinking LED configuration
- MSFS2020 User Defined WASM Module Events Best Practices
- MSFS2020 Developer Mode, Model Behavior dialog and Console window
- MSFS2020 PMDG 737‐700 List of Events that require use of FSUIPC7
-
MSFS2020 PMDG 737‐700 Calibrate throttle idle and reverse thrust using interpolation (Valkyrie)
- MSFS2020 PMDG 737-700 Chrono unit functions implemented in Mobiflight
- Configuring PMDG 737 Parking Brake Lever Auto-Release with a Servo in Mobiflight
- Using encoder to drive a value back and forth within a given range
- Adding a custom board to MobiFlight
- User guide - Community Board and Custom Devices
- Developing your own custom devices/boards