| 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 16661 |
| 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>com1-serviceable</name> |
| 33 | <type>bool</type> |
| 34 | <format>COM1_SRV=%d</format> |
| 35 | <node>/instrumentation/comm/serviceable</node> |
| 36 | </chunk> |
| 37 | |
| 38 | <chunk> |
| 39 | <name>com2frq</name> |
| 40 | <type>float</type> |
| 41 | <format>COM2_FRQ=%03.3f</format> |
| 42 | <node>/instrumentation/comm[1]/frequencies/selected-mhz</node> |
| 43 | </chunk> |
| 44 | |
| 45 | <chunk> |
| 46 | <name>com2-serviceable</name> |
| 47 | <type>bool</type> |
| 48 | <format>COM2_SRV=%d</format> |
| 49 | <node>/instrumentation/comm[1]/serviceable</node> |
| 50 | </chunk> |
| 51 | |
| 52 | <chunk> |
| 53 | <name>nav1frq</name> |
| 54 | <type>float</type> |
| 55 | <format>NAV1_FRQ=%03.3f</format> |
| 56 | <node>/instrumentation/nav/frequencies/selected-mhz</node> |
| 57 | </chunk> |
| 58 | |
| 59 | <chunk> |
| 60 | <name>nav1-serviceable</name> |
| 61 | <type>bool</type> |
| 62 | <format>NAV1_SRV=%d</format> |
| 63 | <node>/instrumentation/nav/serviceable</node> |
| 64 | </chunk> |
| 65 | |
| 66 | <chunk> |
| 67 | <name>nav2frq</name> |
| 68 | <type>float</type> |
| 69 | <format>NAV2_FRQ=%03.3f</format> |
| 70 | <node>/instrumentation/nav[1]/frequencies/selected-mhz</node> |
| 71 | </chunk> |
| 72 | |
| 73 | <chunk> |
| 74 | <name>nav2-serviceable</name> |
| 75 | <type>bool</type> |
| 76 | <format>NAV2_SRV=%d</format> |
| 77 | <node>/instrumentation/nav[1]/serviceable</node> |
| 78 | </chunk> |
| 79 | |
| 80 | <chunk> |
| 81 | <name>ptt-key-status</name> |
| 82 | <type>int</type> |
| 83 | <format>PTT=%d</format> |
| 84 | <node>/instrumentation/comm/ptt</node> |
| 85 | </chunk> |
| 86 | |
| 87 | <chunk> |
| 88 | <name>transponder-code</name> |
| 89 | <type>int</type> |
| 90 | <format>TRANSPONDER=%d</format> |
| 91 | <node>/instrumentation/transponder/id-code</node> |
| 92 | </chunk> |
| 93 | |
| 94 | <chunk> |
| 95 | <name>airspeed</name> |
| 96 | <type>float</type> |
| 97 | <format>IAS=%04.1f</format> |
| 98 | <node>/velocities/airspeed-kt</node> |
| 99 | </chunk> |
| 100 | |
| 101 | <chunk> |
| 102 | <name>groundspeed</name> |
| 103 | <type>float</type> |
| 104 | <format>GS=%04.1f</format> |
| 105 | <node>/velocities/groundspeed-kt</node> |
| 106 | </chunk> |
| 107 | |
| 108 | <chunk> |
| 109 | <name>pos-longitude-deg</name> |
| 110 | <type>float</type> |
| 111 | <format>LON=%03.6f</format> |
| 112 | <node>/position/longitude-deg</node> |
| 113 | </chunk> |
| 114 | |
| 115 | <chunk> |
| 116 | <name>pos-latitude-deg</name> |
| 117 | <type>float</type> |
| 118 | <format>LAT=%03.6f</format> |
| 119 | <node>/position/latitude-deg</node> |
| 120 | </chunk> |
| 121 | |
| 122 | <chunk> |
| 123 | <name>pos-alt</name> |
| 124 | <type>float</type> |
| 125 | <format>ALT=%05.0f</format> |
| 126 | <node>/position/altitude-ft</node> |
| 127 | </chunk> |
| 128 | |
| 129 | <chunk> |
| 130 | <name>heading</name> |
| 131 | <type>float</type> |
| 132 | <format>HEAD=%03.1f</format> |
| 133 | <node>/instrumentation/heading-indicator/indicated-heading-deg</node> |
| 134 | </chunk> |
| 135 | |
| 136 | <chunk> |
| 137 | <name>callsign</name> |
| 138 | <type>string</type> |
| 139 | <format>CALLSIGN=%s</format> |
| 140 | <node>/sim/multiplay/callsign</node> |
| 141 | </chunk> |
| 142 | |
| 143 | <chunk> |
| 144 | <name>model</name> |
| 145 | <type>string</type> |
| 146 | <format>MODEL=%s</format> |
| 147 | <node>/sim/model/path</node> |
| 148 | </chunk> |
| 149 | |
| 150 | <chunk> |
| 151 | <name>output-volume</name> |
| 152 | <type>double</type> |
| 153 | <format>OUTPUT_VOL=%1.1f</format> |
| 154 | <node>/sim/sound/atc/volume</node> |
| 155 | </chunk> |
| 156 | |
| 157 | <chunk> |
| 158 | <name>silence-threshold</name> |
| 159 | <type>double</type> |
| 160 | <format>SILENCE_THD=%1.1f</format> |
| 161 | <node>/sim/fgcom/silence-threshold</node> |
| 162 | </chunk> |
| 163 | |
| 164 | </output> |
| 165 | |
| 166 | </generic> |
| 167 | |
| 168 | </PropertyList> |