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