xp2gdl90 broadcasts simulator data over UDP in GDL90 format for EFB apps such as ForeFlight, Garmin Pilot, WingX, and FltPlan Go.
The primary runtime is an X-Plane 12 plugin. The repository also includes an experimental Windows SimConnect bridge, msfs2gdl90, for Microsoft Flight Simulator 2020 and Microsoft Flight Simulator 2024.
The current codebase includes:
- Standard GDL90 heartbeat, ownship report, and ownship geometric altitude messages
- ForeFlight ID and AHRS extension messages
- ForeFlight auto-discovery with fallback to a manual target IP/port
- Traffic broadcasting from TCAS targets, with legacy multiplayer fallback
- Replay-safe scheduling when X-Plane replay time rewinds
- Pressure-consistent traffic altitude and deterministic IDs for AI targets that do not expose Mode-S addresses
- An in-sim ImGui settings and status window
- Cross-platform builds for macOS, Windows, and Linux
- Experimental MSFS 2020/2024 ownship, AHRS, and best-effort traffic bridge on Windows
- A unit test target and coverage script
Download the latest release from GitHub Releases, extract it, and copy the xp2gdl90 folder into:
X-Plane 12/Resources/plugins/
The packaged release layout is:
xp2gdl90/
├── mac.xpl
├── 64/
│ ├── win.xpl
│ └── lin.xpl
├── msfs/
│ ├── msfs2gdl90.exe
│ └── SimConnect.dll
├── README.md
└── LICENSE
CI also publishes Windows outputs as separate artifacts:
xp2gdl90-windows-xplane: copy the containedxp2gdl90folder toX-Plane 12/Resources/plugins/xp2gdl90-windows-msfs: runmsfs/msfs2gdl90.exe;SimConnect.dllis bundled in the same folder
After launching X-Plane, open:
Plugins -> XP2GDL90 -> Settings...
You can also toggle broadcasting from:
Plugins -> XP2GDL90 -> Enable Broadcasting
Settings are stored in X-Plane's preferences directory as xp2gdl90.json, typically:
Output/preferences/xp2gdl90.json
For a basic manual setup:
- Install the plugin.
- Open
Plugins -> XP2GDL90 -> Settings.... - Set
Target IPto the tablet or EFB device IP. - Leave
Target Portat4000unless your app requires something else. - Keep
NICandNACpat11. - Save the settings.
- Confirm the Status tab shows packets being sent.
For ForeFlight, the plugin can also listen for discovery broadcasts on UDP 63093 and temporarily switch the broadcast target to the discovered host and port.
The repository uses the X-Plane SDK from SDK/ and Dear ImGui as a git submodule under third_party/imgui.
Clone with submodules:
git clone --recursive https://github.com/6639835/xp2gdl90.git
cd xp2gdl90- CMake 3.16+
- C++17 compiler
- X-Plane SDK headers and libraries in
SDK/(already vendored here) - OpenGL development libraries on Linux
Platform notes:
- macOS: Xcode Command Line Tools
- Windows: Visual Studio 2022 or a compatible MSVC toolchain
- Linux: GCC 7+ or Clang 6+ plus OpenGL development packages
Generic CMake flow:
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config ReleaseExpected output locations:
- macOS:
build/mac.xpl - Linux:
build/lin.xpl - Windows:
build/win.xplorbuild/Release/win.xpldepending on generator
Helper scripts are also included:
- macOS:
./build_mac.sh - Linux:
./build_linux.sh - Windows:
build_win.bat
The MSFS bridge is a separate Windows executable rather than an in-simulator plugin. Build it with the MSFS SDK installed:
cmake -S . -B build-msfs -G "Visual Studio 17 2022" ^
-DXP2GDL90_BUILD_MSFS=ON ^
-DMSFS_SDK_PATH="C:\MSFS SDK"
cmake --build build-msfs --config Release --target msfs2gdl90MSFS_SDK_PATH should point to the SDK root that contains SimConnect SDK\include\SimConnect.h and SimConnect SDK\lib\SimConnect.lib. Building against the MSFS 2020 SDK is recommended for one bridge binary that can run with MSFS 2020 and MSFS 2024.
Release packages include msfs/msfs2gdl90.exe and its required SimConnect.dll, so release users do not need to install or copy the SimConnect runtime separately.
For release packages, run the bridge after starting MSFS and loading a flight:
msfs\msfs2gdl90.exeFor source builds, run:
build-msfs\Release\msfs2gdl90.exeOptional overrides:
msfs2gdl90.exe --config C:\path\msfs2gdl90.json --target-ip 192.168.1.50 --target-port 4000By default, settings are created under:
%APPDATA%\xp2gdl90\msfs2gdl90.json
Enable the test target with:
cmake -S . -B build -DXP2GDL90_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug
cmake --build build --target xp2gdl90_tests --config Debug
ctest --test-dir build --output-on-failureA coverage helper is available at scripts/coverage.sh. It configures a separate coverage build under build/coverage, runs ctest, and reports line and function coverage for src/. By default it enforces at least 97.5% line coverage and 100% function coverage, and you can override those thresholds with MIN_LINES_PERCENT and MIN_FUNCTIONS_PERCENT.
The X-Plane plugin and MSFS bridge send:
0x00Heartbeat at the configuredheartbeat_rate0x0AOwnship Report at the configuredposition_rate0x0BOwnship Geometric Altitude at 1 Hz0x14Traffic Report at the configuredtraffic_rate0x65/0x00ForeFlight ID at 1 Hz0x65/0x01ForeFlight AHRS at 5 Hz
Current X-Plane behavior from the implementation:
- ForeFlight auto-discovery is optional and listens on the configured broadcast port
- Manual
target_ipandtarget_portare used as the fallback target - The effective callsign uses the aircraft tail number when available, otherwise the configured fallback callsign
- Ownship report altitude uses X-Plane's standard-atmosphere
sim/flightmodel2/position/pressure_altitudedataref when available - AHRS heading can be transmitted as true or magnetic heading
- Traffic is sourced from TCAS target datarefs when available, otherwise from legacy multiplayer datarefs
- Replay mode uses X-Plane elapsed time for scheduling, preventing stream stalls when the replay timeline is rewound
- Sparse AI targets without Mode-S identity receive deterministic GDL90 track identities, including when identified and unidentified targets coexist
- Empty TCAS slots marked with X-Plane's
-FLT_MAXsentinel are discarded instead of being emitted as phantom traffic - Traffic geometric altitude is shifted by the ownship pressure-minus-geometric offset so displayed relative altitude remains consistent away from 29.92 inHg
Weather uplink data is not transmitted.
Current MSFS bridge behavior:
- Connects to MSFS 2020/2024 through SimConnect from an external Windows executable
- Uses the same JSON settings format as the X-Plane plugin
- Sends ownship GDL90 position, geometric altitude, ForeFlight device info, and ForeFlight AHRS
- Uses ForeFlight discovery on UDP
63093when enabled - Requests nearby SimConnect airplane and helicopter traffic once per second and sends best-effort GDL90 traffic reports
- Includes traffic injected by clients such as vPilot because those clients create/update nearby VATSIM aircraft as SimConnect AI sim objects
- Generates synthetic self-assigned traffic addresses because MSFS traffic does not consistently expose real ICAO addresses
- Has no in-sim settings window; edit the JSON file or use command-line target overrides
The on-disk settings file is JSON:
{
"target_ip": "192.168.1.100",
"target_port": 4000,
"foreflight_auto_discovery": true,
"foreflight_broadcast_port": 63093,
"icao_address": 11259375,
"callsign": "N12345",
"emitter_category": 1,
"device_name": "XP2GDL90",
"device_long_name": "XP2GDL90 AHRS",
"internet_policy": 0,
"ahrs_use_magnetic_heading": false,
"traffic_enabled": true,
"heartbeat_rate": 1.0,
"position_rate": 2.0,
"traffic_rate": 1.0,
"traffic_max_targets": 63,
"nic": 11,
"nacp": 11,
"debug_logging": false,
"log_messages": false
}Field reference:
| Key | Type | Notes |
|---|---|---|
target_ip |
string | Manual UDP target. Can be a unicast address, subnet broadcast, or 255.255.255.255. |
target_port |
number | Manual UDP destination port. |
foreflight_auto_discovery |
boolean | Enables the listener for ForeFlight discovery broadcasts. |
foreflight_broadcast_port |
number | Discovery listen port. Default is 63093. |
icao_address |
number | Stored in JSON as a decimal 24-bit value. The UI accepts hex such as 0xABCDEF. |
callsign |
string | Fallback only. Trimmed to 8 characters. |
emitter_category |
number | Valid range 0-39. |
device_name |
string | ForeFlight device name. Trimmed to 8 characters. |
device_long_name |
string | ForeFlight long name. Trimmed to 16 characters. |
internet_policy |
number | 0=Unrestricted, 1=Expensive, 2=Disallowed. |
ahrs_use_magnetic_heading |
boolean | false sends true heading, true converts to magnetic heading. |
traffic_enabled |
boolean | Enables X-Plane TCAS/legacy traffic reports. |
heartbeat_rate |
number | Must be greater than 0. |
position_rate |
number | Must be greater than 0. |
traffic_rate |
number | Traffic report sweep rate in Hz; must be greater than 0. |
traffic_max_targets |
number | Maximum sparse traffic slots to inspect, 0-63. |
nic |
number | Valid range 0-11. 11 is recommended for EFB compatibility. |
nacp |
number | Valid range 0-11. 11 is recommended for EFB compatibility. |
debug_logging |
boolean | Enables plugin debug logging to Log.txt. |
log_messages |
boolean | Enables raw message logging. |
The settings window currently exposes these tabs:
StatusNetworkOwnshipDeviceRatesAccuracyDebug
The window supports Apply, Save, Revert, and Defaults.
Key X-Plane datarefs used by the plugin include:
sim/flightmodel/position/latitudesim/flightmodel/position/longitudesim/flightmodel/position/elevationsim/cockpit2/gauges/indicators/altitude_ft_pilotsim/flightmodel/position/groundspeedsim/flightmodel/position/true_psisim/flightmodel/position/thetasim/flightmodel/position/phisim/flightmodel/position/psisim/flightmodel/position/indicated_airspeedsim/flightmodel/position/true_airspeedsim/flightmodel/position/vh_ind_fpmsim/flightmodel/failures/onground_anysim/aircraft/view/acf_tailnumsim/cockpit2/tcas/targets/*sim/multiplayer/position/planeN_*
Key MSFS SimVars used by the bridge include:
PLANE LATITUDEPLANE LONGITUDEPLANE ALTITUDEPRESSURE ALTITUDEGROUND VELOCITYVERTICAL SPEEDPLANE HEADING DEGREES TRUEPLANE HEADING DEGREES MAGNETICPLANE PITCH DEGREESPLANE BANK DEGREESAIRSPEED INDICATEDAIRSPEED TRUESIM ON GROUNDATC IDVELOCITY WORLD X/Y/Zfor traffic track and vertical speed
- Check X-Plane's
Log.txtfor lines prefixed with[XP2GDL90] - Verify the plugin directory is
Resources/plugins/xp2gdl90/ - Verify the correct platform binary exists inside the folder
- If building from source, make sure the ImGui submodule is present
- Make sure the X-Plane machine and EFB device are on the same network
- Confirm the target IP is correct if you are not relying on ForeFlight auto-discovery
- Keep
NIC=11andNACp=11 - Check the Status tab to confirm heartbeat and position packets are increasing
- Check
Log.txtfor UDP send errors
- Confirm
ForeFlight auto discoveryis enabled - Confirm the discovery port matches the app environment; default is
63093 - Check that firewall rules allow UDP traffic
- Use a manual target IP/port as fallback
- Use
Save, not onlyApply - Check whether
xp2gdl90.jsonwas created in the X-Plane preferences directory - Check
Log.txtfor a settings write error
.
├── CMakeLists.txt
├── SDK/
├── docs/
├── include/xp2gdl90/
├── scripts/
├── src/
├── tests/
└── third_party/imgui/
This project is licensed under the MIT License. See LICENSE.
- Issues: GitHub Issues
- Actions: GitHub Actions