1
0
Fork 0

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.

This commit is contained in:
Erik Hofman 2017-07-05 09:03:45 +02:00
parent 7c72687ed7
commit 446cff0a93
2 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,41 @@
<?xml version="1.0"?>
<PropertyList>
<comment>
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/
</comment>
<generic>
<output>
<line_separator>newline</line_separator>
<var_separator>,</var_separator>
<chunk>
<name>Record type (XATT) and simulator name</name>
<format>XATTFlightGear</format>
</chunk>
<chunk>
<name>Heading (degrees true)</name>
<type>float</type>
<format>%.1f</format>
<node>/orientation/heading-deg</node>
</chunk>
<chunk>
<name>Pitch (degrees up)</name>
<type>float</type>
<format>%.1f</format>
<node>/orientation/pitch-deg</node>
</chunk>
<chunk>
<name>Roll (degrees up)</name>
<type>float</type>
<format>%.1f</format>
<node>/orientation/roll-deg</node>
</chunk>
</output>
</generic>
</PropertyList>

View file

@ -0,0 +1,55 @@
<?xml version="1.0"?>
<PropertyList>
<comment>
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/
</comment>
<generic>
<output>
<line_separator>newline</line_separator>
<var_separator>,</var_separator>
<chunk>
<name>Record type (XGPS) and simulator name</name>
<format>XGPSFlightGear</format>
</chunk>
<chunk>
<name>Longitude (deg)</name>
<type>float</type>
<format>%.3f</format>
<node>/position/longitude-deg</node>
</chunk>
<chunk>
<name>Latitude (deg)</name>
<type>float</type>
<format>%.3f</format>
<node>/position/latitude-deg</node>
</chunk>
<chunk>
<name>Altitude MSL (m)</name>
<type>float</type>
<format>%.1f</format>
<node>/position/altitude-ft</node>
<factor>0.3038</factor>
</chunk>
<chunk>
<name>Track (deg true)</name>
<type>float</type>
<format>%.3f</format>
<node>/orientation/track-deg</node>
</chunk>
<chunk>
<name>Ground speed (m/sec)</name>
<type>float</type>
<format>%.1lf</format>
<node>/velocities/groundspeed-kt</node>
<factor>0.50277</factor>
</chunk>
</output>
</generic>
</PropertyList>