Holger Wirtz:
[fg:toms-fgdata.git] / Protocol / fgcom.xml
1 <?xml version="1.0"?>
2
3 <PropertyList>
4  <comment>
5   <![CDATA[
6     This is the protocol definition for fgcom - a realtime communication
7     middleware based on IAX2 (Asterisk) for FlightGear
8     See http://squonk.abacab.org/dokuwiki/fgcom
9
10     Usage:
11     # fgfs --generic=socket,out,<hz>,<host>,16661,udp,fgcom
12
13     Check data with:
14     #  netcat -u -l -p <port>
15   ]]>
16  </comment>
17
18  <generic>
19
20   <output>
21    <line_separator>newline</line_separator>
22    <var_separator>,</var_separator>
23
24    <chunk>
25     <name>com1frq</name>
26     <type>float</type>
27     <format>COM1_FRQ=%03.3f</format>
28     <node>/instrumentation/comm/frequencies/selected-mhz</node>
29    </chunk>
30
31    <chunk>
32     <name>nav1frq</name>
33     <type>float</type>
34     <format>NAV1_FRQ=%03.3f</format>
35     <node>/instrumentation/nav/frequencies/selected-mhz</node>
36    </chunk>
37
38    <chunk>
39     <name>ptt-key-status</name>
40     <type>bool</type>
41     <format>PTT=%d</format>
42     <node>/instrumentation/comm/ptt</node>
43    </chunk>
44
45    <chunk>
46     <name>transponder-code</name>
47     <type>int</type>
48     <format>TRANSPONDER=%d</format>
49     <node>/instrumentation/transponder/id-code</node>
50    </chunk>
51
52    <chunk>
53     <name>airspeed</name>
54     <type>float</type>
55     <format>IAS=%04.1f</format>
56     <node>/velocities/airspeed-kt</node>
57    </chunk>
58
59    <chunk>
60     <name>groundspeed</name>
61     <type>float</type>
62     <format>GS=%04.1f</format>
63     <node>/velocities/groundspeed-kt</node>
64    </chunk>
65
66    <chunk>
67     <name>pos-longitude-deg</name>
68     <type>float</type>
69     <format>LON=%03.6f</format>
70     <node>/position/longitude-deg</node>
71    </chunk>
72
73    <chunk>
74     <name>pos-latitude-deg</name>
75     <type>float</type>
76     <format>LAT=%03.6f</format>
77     <node>/position/latitude-deg</node>
78    </chunk>
79
80    <chunk>
81     <name>pos-alt</name>
82     <type>float</type>
83     <format>ALT=%05.0f</format>
84     <node>/position/altitude-ft</node>
85    </chunk>
86
87    <chunk>
88     <name>heading</name>
89     <type>float</type>
90     <format>HEAD=%03.1f</format>
91     <node>/instrumentation/heading-indicator/indicated-heading-deg</node>
92    </chunk>
93
94   </output>
95
96  </generic>
97
98 </PropertyList>