From 446cff0a93d1881132a6bed8abd9eddc68bccc41 Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Wed, 5 Jul 2017 09:03:45 +0200 Subject: [PATCH] David Megginson: here are the generic protocols I implemented for ForeFlight's sim integration (also supported by Garmin Pilot). The XATT one isn't fully working in Garmin Pilot (I've checked that the output is correct by sending it to a file), so I'd be grateful if anyone with an iOS device could try it in ForeFlight. The XGPS one is working flawlessly in Garmin Pilot on Android. --- Protocol/foreflight-xatt.xml | 41 +++++++++++++++++++++++++++ Protocol/foreflight-xgps.xml | 55 ++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 Protocol/foreflight-xatt.xml create mode 100644 Protocol/foreflight-xgps.xml diff --git a/Protocol/foreflight-xatt.xml b/Protocol/foreflight-xatt.xml new file mode 100644 index 000000000..9512c24dd --- /dev/null +++ b/Protocol/foreflight-xatt.xml @@ -0,0 +1,41 @@ + + + + + Attitude information for ForeFlight or Garmin Pilot. + + Broadcast (or send to specific IP) via UDP on port 49002 at 4-10 Hz: + + --generic=socket,out,10,255.255.255.255,49002,udp,foreflight-xatt + + See https://www.foreflight.com/support/network-gps/ + + + + newline + , + + Record type (XATT) and simulator name + XATTFlightGear + + + Heading (degrees true) + float + %.1f + /orientation/heading-deg + + + Pitch (degrees up) + float + %.1f + /orientation/pitch-deg + + + Roll (degrees up) + float + %.1f + /orientation/roll-deg + + + + diff --git a/Protocol/foreflight-xgps.xml b/Protocol/foreflight-xgps.xml new file mode 100644 index 000000000..4a660dd59 --- /dev/null +++ b/Protocol/foreflight-xgps.xml @@ -0,0 +1,55 @@ + + + + + GPS information for ForeFlight or Garmin Pilot. + + Broadcast (or send to specific IP) via UDP on port 49002 at 1 Hz: + + --generic=socket,out,1,255.255.255.255,49002,udp,foreflight-xgps + + See https://www.foreflight.com/support/network-gps/ + + + + newline + , + + Record type (XGPS) and simulator name + XGPSFlightGear + + + Longitude (deg) + float + %.3f + /position/longitude-deg + + + Latitude (deg) + float + %.3f + /position/latitude-deg + + + Altitude MSL (m) + float + %.1f + /position/altitude-ft + 0.3038 + + + Track (deg true) + float + %.3f + /orientation/track-deg + + + Ground speed (m/sec) + float + %.1lf + /velocities/groundspeed-kt + 0.50277 + + + +