To integrate GPS, traffic, and attitude data from a flight simulator into ForeFlight Mobile using UDP, send specific packet formats to ForeFlight over UDP port 49002.
GPS Data
Send GPS packets at 1Hz (once per second), structured as:
Fields
The fields must be formatted as follows:
- Simulator Name/ID (short identifier)
- Longitude (decimal, up to 3 decimals)
- Latitude (decimal, up to 3 decimals)
- Altitude in meters MSL (1 decimal)
- Track-along-ground from true north (2-3 decimals)
- Groundspeed in meters/second (1 decimal)
Example
Traffic Data
Send traffic data packets structured as:
Fields
The fields must be formatted as follows:
- Simulator Name/ID (short identifier)
- ICAO Address (integer)
- Traffic Latitude (float, decimal, up to 2-3 decimals)
- Traffic Longitude (float, decimal, up to 2-3 decimals)
- Geometric Altitude (float, in feet, 1 decimal)
- Vertical Speed (float, in feet/minute)
-
Airborne Flag (
1
for airborne,0
for ground) - True Heading (float, degrees, up to 2-3 decimals)
- Velocity in knots (float, up to 1 decimal)
- Callsign (string)
Example
Attitude Data
Send attitude packets at 4-10Hz, formatted as:
Fields
The fields must be formatted as follows:
- Simulator Name/ID (short identifier)
- True Heading (float, degrees, up to 2-3 decimals)
- Pitch (degrees, float, positive up)
- Roll (degrees, float, positive right)
Example
Broadcasting
To avoid needing specific IP addresses, broadcast packets can be used to allow all iPads on the network to detect the data. Ensure network/firewall configurations support this if necessary.
NOTES
- Packets should be sent evenly spaced in time.
- Use appropriate decimal precision as specified.
Last Updated: