83f9ed9192
Update to the FGCOM protocol: -> http://squonk.abacab.org/dokuwiki/fgcom
140 lines
3.1 KiB
XML
140 lines
3.1 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<PropertyList>
|
|
<comment>
|
|
<![CDATA[
|
|
This is the protocol definition for fgcom - a realtime communication
|
|
middleware based on IAX2 (Asterisk) for FlightGear
|
|
See http://squonk.abacab.org/dokuwiki/fgcom
|
|
|
|
Usage:
|
|
# fgfs --generic=socket,out,<hz>,<host>,16661,udp,fgcom
|
|
|
|
Check data with:
|
|
# netcat -u -l -p 16661
|
|
]]>
|
|
</comment>
|
|
|
|
<generic>
|
|
|
|
<output>
|
|
<line_separator>newline</line_separator>
|
|
<var_separator>,</var_separator>
|
|
|
|
<chunk>
|
|
<name>com1frq</name>
|
|
<type>float</type>
|
|
<format>COM1_FRQ=%03.3f</format>
|
|
<node>/instrumentation/comm/frequencies/selected-mhz</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>com1-serviceable</name>
|
|
<type>bool</type>
|
|
<format>COM1_SRV=%d</format>
|
|
<node>/instrumentation/comm/serviceable</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>com2frq</name>
|
|
<type>float</type>
|
|
<format>COM2_FRQ=%03.3f</format>
|
|
<node>/instrumentation/comm[1]/frequencies/selected-mhz</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>com2-serviceable</name>
|
|
<type>bool</type>
|
|
<format>COM2_SRV=%d</format>
|
|
<node>/instrumentation/comm[1]/serviceable</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>nav1frq</name>
|
|
<type>float</type>
|
|
<format>NAV1_FRQ=%03.3f</format>
|
|
<node>/instrumentation/nav/frequencies/selected-mhz</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>nav1-serviceable</name>
|
|
<type>bool</type>
|
|
<format>NAV1_SRV=%d</format>
|
|
<node>/instrumentation/nav/serviceable</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>nav2frq</name>
|
|
<type>float</type>
|
|
<format>NAV2_FRQ=%03.3f</format>
|
|
<node>/instrumentation/nav[1]/frequencies/selected-mhz</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>nav2-serviceable</name>
|
|
<type>bool</type>
|
|
<format>NAV2_SRV=%d</format>
|
|
<node>/instrumentation/nav[1]/serviceable</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>ptt-key-status</name>
|
|
<type>int</type>
|
|
<format>PTT=%d</format>
|
|
<node>/instrumentation/comm/ptt</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>transponder-code</name>
|
|
<type>int</type>
|
|
<format>TRANSPONDER=%d</format>
|
|
<node>/instrumentation/transponder/id-code</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>airspeed</name>
|
|
<type>float</type>
|
|
<format>IAS=%04.1f</format>
|
|
<node>/velocities/airspeed-kt</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>groundspeed</name>
|
|
<type>float</type>
|
|
<format>GS=%04.1f</format>
|
|
<node>/velocities/groundspeed-kt</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>pos-longitude-deg</name>
|
|
<type>float</type>
|
|
<format>LON=%03.6f</format>
|
|
<node>/position/longitude-deg</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>pos-latitude-deg</name>
|
|
<type>float</type>
|
|
<format>LAT=%03.6f</format>
|
|
<node>/position/latitude-deg</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>pos-alt</name>
|
|
<type>float</type>
|
|
<format>ALT=%05.0f</format>
|
|
<node>/position/altitude-ft</node>
|
|
</chunk>
|
|
|
|
<chunk>
|
|
<name>heading</name>
|
|
<type>float</type>
|
|
<format>HEAD=%03.1f</format>
|
|
<node>/instrumentation/heading-indicator/indicated-heading-deg</node>
|
|
</chunk>
|
|
|
|
</output>
|
|
|
|
</generic>
|
|
|
|
</PropertyList>
|