Hi everyone,
I'm happy to share a tool I've been working on: AFS4 XCSoar Bridge — a bridge that connects Aerofly FS4 to XCSoar, the open-source glide computer used by real-world glider pilots.
For the moment it only works with glider self launch or starting a flight in the air - sim limitation.
If you enjoy soaring in AFS4, this gives you a fully functional glide computer running alongside the simulator with real-time data: vario, barometric altitude, moving map, thermal mapping, task planning, and everything else XCSoar offers.
How it works:
- The bridge reads AFS4's UDP broadcast data (ForeFlight protocol)
- Converts it to standard NMEA sentences (the same format real GPS devices use)
- Serves the data via TCP so XCSoar can connect and use it
What XCSoar gets from AFS4:
- GPS position, altitude, and ground speed
- True heading
- Barometric altitude
- Calculated vario (vertical speed) with smoothing
- 30-second average vario
Features:
- Simple GUI showing connection status and live flight data
- Standalone Windows executable — no Python installation needed
- Also works from the command line for advanced users
- Zero configuration needed on the AFS4 side (just enable UDP broadcast)
- Works on the same computer or across the network (e.g., XCSoar on a tablet)
Quick setup:
1. In AFS4: Settings > Miscellaneous > Enable "Broadcast flight info to IP address" (port 49002)
2. Download and run AFS4-XCSoar-Bridge.exe, click Start
3. In XCSoar (must be in FLY mode, not SIM): Config > Devices > Add device:
- Port: TCP Client
- IP: 127.0.0.1
- TCP Port: 4353
- Driver: Generic
That's it — XCSoar will show your position, altitude, vario, and start mapping thermals.
Important note: XCSoar must be set to FLY mode (not SIM). In SIM mode, XCSoar disables all network device ports.
Download:
GitHub: https://github.com/jlgabriel/afs4-xcsoar-integration
Direct download (Windows exe): https://github.com/jlgabriel/afs4…ases/tag/v1.0.0
The project is open source (MIT license). Feedback, suggestions, and contributions are welcome!
Future plans include a version that connects through the Aerofly Bridge DLL for access to more flight data (airspeed, pressure, and more).