Jump to content

FGFS output to foreflight on iPad

Recommended Posts

Hello all,


I was doing some research to figure out how Flight Gear 2.6.0 could output the X-Plane format to OzRunways so that the simulation could drive the moving map.


I didn't figure that out (yet) but I'm confident I have the right approach.


What I did figure out was that the protocol to drive ForeFlight is dead simple (link here). So I did that and tried it out on ForeFlight. Following the instructions in the link, it worked!


Here are the basic steps:


  1. FGFS start up wizard should not be running
  2. Determine the IP address of the iPad (OzRunways displays this on its simulation settings page or ask a grown up)
  3. Go to the /data/protocol folder in FGFS and create a new XML file. See the text below for the contents of the file I used. Save the file as ForeFlightGPS.xml or whatever you want to appear on the screen
  4. Go to the advanced settings in the FGFS start up wizard, select input/output and create a new generic output entry which must be port 49002 and UDP. The host IP address should be the iPad as per step 2 above. See screen grab
  5. Ensure the settings appear as-expected in the command line output in the wizard as per the second screen grab
  6. Click the Run button on FGFS start up wizard
  7. Start ForeFlight, enter simulation mode. It should have identified that a device is feeding it valid data




To Test


  1. Find the current location of the simulation on the ForeFlight map
  2. At the simulation, move the current location to another place
  3. On ForeFlight, watch the current location dot move around. it will move if everything is happy




Below is the protocol definition I authored


<?xml version="1.0"?>













◦Altitude in meters MSL


◦Track-along-ground from true north


◦Groundspeed in meters/sec


















<format>XGPSMy Sim</format>




<!-- Position -->








































<!-- Velocity and track -->





































Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...