pixhawk.xml 16.1 KB
Newer Older
1
<?xml version='1.0'?>
James Goppert's avatar
James Goppert committed
2
<mavlink>
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
     <include>common.xml</include>
     <enums>
          <enum name="DATA_TYPES">
               <description>Content Types for data transmission handshake</description>
               <entry value="1" name="DATA_TYPE_JPEG_IMAGE"/>
               <entry value="2" name="DATA_TYPE_RAW_IMAGE"/>
               <entry value="3" name="DATA_TYPE_KINECT"/>
          </enum>
     </enums>
     <messages>
          <message id="85" name="ATTITUDE_CONTROL">
               <field type="uint8_t" name="target">The system to be controlled</field>
               <field type="float" name="roll">roll</field>
               <field type="float" name="pitch">pitch</field>
               <field type="float" name="yaw">yaw</field>
               <field type="float" name="thrust">thrust</field>
               <field type="uint8_t" name="roll_manual">roll control enabled auto:0, manual:1</field>
               <field type="uint8_t" name="pitch_manual">pitch auto:0, manual:1</field>
               <field type="uint8_t" name="yaw_manual">yaw auto:0, manual:1</field>
               <field type="uint8_t" name="thrust_manual">thrust auto:0, manual:1</field>
          </message>
          <message id="100" name="SET_CAM_SHUTTER">
               <field type="uint8_t" name="cam_no">Camera id</field>
               <field type="uint8_t" name="cam_mode">Camera mode: 0 = auto, 1 = manual</field>
               <field type="uint8_t" name="trigger_pin">Trigger pin, 0-3 for PtGrey FireFly</field>
               <field type="uint16_t" name="interval">Shutter interval, in microseconds</field>
               <field type="uint16_t" name="exposure">Exposure time, in microseconds</field>
               <field type="float" name="gain">Camera gain</field>
          </message>
          <message id="101" name="IMAGE_TRIGGERED">
               <field type="uint64_t" name="timestamp">Timestamp</field>
               <field type="uint32_t" name="seq">IMU seq</field>
               <field type="float" name="roll">Roll angle in rad</field>
               <field type="float" name="pitch">Pitch angle in rad</field>
               <field type="float" name="yaw">Yaw angle in rad</field>
               <field type="float" name="local_z">Local frame Z coordinate (height over ground)</field>
               <field type="float" name="lat">GPS X coordinate</field>
               <field type="float" name="lon">GPS Y coordinate</field>
               <field type="float" name="alt">Global frame altitude</field>
               <field type="float" name="ground_x">Ground truth X</field>
               <field type="float" name="ground_y">Ground truth Y</field>
               <field type="float" name="ground_z">Ground truth Z</field>
          </message>
          <message id="102" name="IMAGE_TRIGGER_CONTROL">
               <field type="uint8_t" name="enable">0 to disable, 1 to enable</field>
          </message>
          <message id="103" name="IMAGE_AVAILABLE">
               <field type="uint64_t" name="cam_id">Camera id</field>
               <field type="uint8_t" name="cam_no">Camera # (starts with 0)</field>
               <field type="uint64_t" name="timestamp">Timestamp</field>
               <field type="uint64_t" name="valid_until">Until which timestamp this buffer will stay valid</field>
               <field type="uint32_t" name="img_seq">The image sequence number</field>
               <field type="uint32_t" name="img_buf_index">Position of the image in the buffer, starts with 0</field>
               <field type="uint16_t" name="width">Image width</field>
               <field type="uint16_t" name="height">Image height</field>
               <field type="uint16_t" name="depth">Image depth</field>
               <field type="uint8_t" name="channels">Image channels</field>
               <field type="uint32_t" name="key">Shared memory area key</field>
               <field type="uint32_t" name="exposure">Exposure time, in microseconds</field>
               <field type="float" name="gain">Camera gain</field>
               <field type="float" name="roll">Roll angle in rad</field>
               <field type="float" name="pitch">Pitch angle in rad</field>
               <field type="float" name="yaw">Yaw angle in rad</field>
               <field type="float" name="local_z">Local frame Z coordinate (height over ground)</field>
               <field type="float" name="lat">GPS X coordinate</field>
               <field type="float" name="lon">GPS Y coordinate</field>
               <field type="float" name="alt">Global frame altitude</field>
               <field type="float" name="ground_x">Ground truth X</field>
               <field type="float" name="ground_y">Ground truth Y</field>
               <field type="float" name="ground_z">Ground truth Z</field>
          </message>
          <message id="111" name="VISION_POSITION_ESTIMATE">
               <field type="uint64_t" name="usec">Timestamp (milliseconds)</field>
               <field type="float" name="x">Global X position</field>
               <field type="float" name="y">Global Y position</field>
               <field type="float" name="z">Global Z position</field>
               <field type="float" name="roll">Roll angle in rad</field>
               <field type="float" name="pitch">Pitch angle in rad</field>
               <field type="float" name="yaw">Yaw angle in rad</field>
          </message>
          <message id="112" name="VICON_POSITION_ESTIMATE">
               <field type="uint64_t" name="usec">Timestamp (milliseconds)</field>
               <field type="float" name="x">Global X position</field>
               <field type="float" name="y">Global Y position</field>
               <field type="float" name="z">Global Z position</field>
               <field type="float" name="roll">Roll angle in rad</field>
               <field type="float" name="pitch">Pitch angle in rad</field>
               <field type="float" name="yaw">Yaw angle in rad</field>
          </message>
          <message id="113" name="VISION_SPEED_ESTIMATE">
               <field type="uint64_t" name="usec">Timestamp (milliseconds)</field>
               <field type="float" name="x">Global X speed</field>
               <field type="float" name="y">Global Y speed</field>
               <field type="float" name="z">Global Z speed</field>
          </message>
          <message id="120" name="POSITION_CONTROL_SETPOINT_SET">
               <description>Message sent to the MAV to set a new position as reference for the controller</description>
               <field type="uint8_t" name="target_system">System ID</field>
               <field type="uint8_t" name="target_component">Component ID</field>
               <field type="uint16_t" name="id">ID of waypoint, 0 for plain position</field>
               <field type="float" name="x">x position</field>
               <field type="float" name="y">y position</field>
               <field type="float" name="z">z position</field>
               <field type="float" name="yaw">yaw orientation in radians, 0 = NORTH</field>
          </message>
          <message id="154" name="POSITION_CONTROL_OFFSET_SET">
               <description>Message sent to the MAV to set a new offset from the currently controlled position</description>
               <field type="uint8_t" name="target_system">System ID</field>
               <field type="uint8_t" name="target_component">Component ID</field>
               <field type="float" name="x">x position offset</field>
               <field type="float" name="y">y position offset</field>
               <field type="float" name="z">z position offset</field>
               <field type="float" name="yaw">yaw orientation offset in radians, 0 = NORTH</field>
          </message>
          <!-- Message sent by the MAV once it sets a new position as reference in the controller -->
          <message id="121" name="POSITION_CONTROL_SETPOINT">
               <field type="uint16_t" name="id">ID of waypoint, 0 for plain position</field>
               <field type="float" name="x">x position</field>
               <field type="float" name="y">y position</field>
               <field type="float" name="z">z position</field>
               <field type="float" name="yaw">yaw orientation in radians, 0 = NORTH</field>
          </message>
          <message id="130" name="MARKER">
               <field type="uint16_t" name="id">ID</field>
               <field type="float" name="x">x position</field>
               <field type="float" name="y">y position</field>
               <field type="float" name="z">z position</field>
               <field type="float" name="roll">roll orientation</field>
               <field type="float" name="pitch">pitch orientation</field>
               <field type="float" name="yaw">yaw orientation</field>
          </message>
          <message id="141" name="RAW_AUX">
               <field type="uint16_t" name="adc1">ADC1 (J405 ADC3, LPC2148 AD0.6)</field>
               <field type="uint16_t" name="adc2">ADC2 (J405 ADC5, LPC2148 AD0.2)</field>
               <field type="uint16_t" name="adc3">ADC3 (J405 ADC6, LPC2148 AD0.1)</field>
               <field type="uint16_t" name="adc4">ADC4 (J405 ADC7, LPC2148 AD1.3)</field>
               <field type="uint16_t" name="vbat">Battery voltage</field>
               <field type="int16_t" name="temp">Temperature (degrees celcius)</field>
               <field type="int32_t" name="baro">Barometric pressure (hecto Pascal)</field>
          </message>
          <message id="142" name="AUX_STATUS">
               <field type="uint16_t" name="load">Maximum usage in percent of the mainloop time, (0%: 0, 100%: 1000) should be always below 1000</field>
               <field type="uint16_t" name="i2c0_err_count">Number of I2C errors since startup</field>
               <field type="uint16_t" name="i2c1_err_count">Number of I2C errors since startup</field>
               <field type="uint16_t" name="spi0_err_count">Number of I2C errors since startup</field>
               <field type="uint16_t" name="spi1_err_count">Number of I2C errors since startup</field>
               <field type="uint16_t" name="uart_total_err_count">Number of I2C errors since startup</field>
          </message>
          <message id="150" name="WATCHDOG_HEARTBEAT">
               <field type="uint16_t" name="watchdog_id">Watchdog ID</field>
               <field type="uint16_t" name="process_count">Number of processes</field>
          </message>
          <message id="151" name="WATCHDOG_PROCESS_INFO">
               <field type="uint16_t" name="watchdog_id">Watchdog ID</field>
               <field type="uint16_t" name="process_id">Process ID</field>
LM's avatar
LM committed
158 159
               <field type="char[100]" name="name">Process name</field>
               <field type="char[147]" name="arguments">Process arguments</field>
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
               <field type="int32_t" name="timeout">Timeout (seconds)</field>
          </message>
          <message id="152" name="WATCHDOG_PROCESS_STATUS">
               <field type="uint16_t" name="watchdog_id">Watchdog ID</field>
               <field type="uint16_t" name="process_id">Process ID</field>
               <field type="uint8_t" name="state">Is running / finished / suspended / crashed</field>
               <field type="uint8_t" name="muted">Is muted</field>
               <field type="int32_t" name="pid">PID</field>
               <field type="uint16_t" name="crashes">Number of crashes</field>
          </message>
          <message id="153" name="WATCHDOG_COMMAND">
               <field type="uint8_t" name="target_system_id">Target system ID</field>
               <field type="uint16_t" name="watchdog_id">Watchdog ID</field>
               <field type="uint16_t" name="process_id">Process ID</field>
               <field type="uint8_t" name="command_id">Command ID</field>
          </message>
          <message id="160" name="PATTERN_DETECTED">
               <field type="uint8_t" name="type">0: Pattern, 1: Letter</field>
               <field type="float" name="confidence">Confidence of detection</field>
LM's avatar
LM committed
179
               <field type="char[100]" name="file">Pattern file name</field>
180 181 182 183 184 185 186 187 188 189 190 191 192 193
               <field type="uint8_t" name="detected">Accepted as true detection, 0 no, 1 yes</field>
          </message>
          <message id="161" name="POINT_OF_INTEREST">
               <description>Notifies the operator about a point of interest (POI). This can be anything detected by the
                system. This generic message is intented to help interfacing to generic visualizations and to display
                the POI on a map.
            </description>
               <field type="uint8_t" name="type">0: Notice, 1: Warning, 2: Critical, 3: Emergency, 4: Debug</field>
               <field type="uint8_t" name="color">0: blue, 1: yellow, 2: red, 3: orange, 4: green, 5: magenta</field>
               <field type="uint8_t" name="coordinate_system">0: global, 1:local</field>
               <field type="uint16_t" name="timeout">0: no timeout, >1: timeout in seconds</field>
               <field type="float" name="x">X Position</field>
               <field type="float" name="y">Y Position</field>
               <field type="float" name="z">Z Position</field>
LM's avatar
LM committed
194
               <field type="char[26]" name="name">POI name</field>
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
          </message>
          <message id="162" name="POINT_OF_INTEREST_CONNECTION">
               <description>Notifies the operator about the connection of two point of interests (POI). This can be anything detected by the
                system. This generic message is intented to help interfacing to generic visualizations and to display
                the POI on a map.
            </description>
               <field type="uint8_t" name="type">0: Notice, 1: Warning, 2: Critical, 3: Emergency, 4: Debug</field>
               <field type="uint8_t" name="color">0: blue, 1: yellow, 2: red, 3: orange, 4: green, 5: magenta</field>
               <field type="uint8_t" name="coordinate_system">0: global, 1:local</field>
               <field type="uint16_t" name="timeout">0: no timeout, >1: timeout in seconds</field>
               <field type="float" name="xp1">X1 Position</field>
               <field type="float" name="yp1">Y1 Position</field>
               <field type="float" name="zp1">Z1 Position</field>
               <field type="float" name="xp2">X2 Position</field>
               <field type="float" name="yp2">Y2 Position</field>
               <field type="float" name="zp2">Z2 Position</field>
LM's avatar
LM committed
211
               <field type="char[26]" name="name">POI connection name</field>
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
          </message>
          <message id="170" name="DATA_TRANSMISSION_HANDSHAKE">
               <field type="uint8_t" name="type">type of requested/acknowledged data (as defined in ENUM DATA_TYPES in mavlink/include/mavlink_types.h)</field>
               <field type="uint32_t" name="size">total data size in bytes (set on ACK only)</field>
               <field type="uint8_t" name="packets">number of packets beeing sent (set on ACK only)</field>
               <field type="uint8_t" name="payload">payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on ACK only)</field>
               <field type="uint8_t" name="jpg_quality">JPEG quality out of [1,100]</field>
          </message>
          <message id="171" name="ENCAPSULATED_DATA">
               <field type="uint16_t" name="seqnr">sequence number (starting with 0 on every transmission)</field>
               <field type="uint8_t[253]" name="data">image data bytes</field>
          </message>
          <message id="172" name="BRIEF_FEATURE">
               <field type="float" name="x">x position in m</field>
               <field type="float" name="y">y position in m</field>
               <field type="float" name="z">z position in m</field>
               <field type="uint8_t" name="orientation_assignment">Orientation assignment 0: false, 1:true</field>
               <field type="uint16_t" name="size">Size in pixels</field>
               <field type="uint16_t" name="orientation">Orientation</field>
               <field type="uint8_t[32]" name="descriptor">Descriptor</field>
               <field type="float" name="response">Harris operator response at this location</field>
          </message>
     </messages>
James Goppert's avatar
James Goppert committed
235
</mavlink>