MAVLink Include Files: common.xml

## MAVLink Type Enumerations

### UAVIONIX_ADSB_OUT_DYNAMIC_STATE

[Enum] State flags for ADS-B transponder dynamic report

Value | Field Name | Description
--- | --- | ---
1 | UAVIONIX_ADSB_OUT_DYNAMIC_STATE_INTENT_CHANGE |
2 | UAVIONIX_ADSB_OUT_DYNAMIC_STATE_AUTOPILOT_ENABLED |
4 | UAVIONIX_ADSB_OUT_DYNAMIC_STATE_NICBARO_CROSSCHECKED |
8 | UAVIONIX_ADSB_OUT_DYNAMIC_STATE_ON_GROUND |
16 | UAVIONIX_ADSB_OUT_DYNAMIC_STATE_IDENT |

### UAVIONIX_ADSB_OUT_RF_SELECT

[Enum] Transceiver RF control flags for ADS-B transponder dynamic reports

Value | Field Name | Description
--- | --- | ---
0 | UAVIONIX_ADSB_OUT_RF_SELECT_STANDBY |
1 | UAVIONIX_ADSB_OUT_RF_SELECT_RX_ENABLED |
2 | UAVIONIX_ADSB_OUT_RF_SELECT_TX_ENABLED |

### UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX

[Enum] Status for ADS-B transponder dynamic input

Value | Field Name | Description
--- | --- | ---
0 | UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_NONE_0 |
1 | UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_NONE_1 |
2 | UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_2D |
3 | UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_3D |
4 | UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_DGPS |
5 | UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_RTK |

### UAVIONIX_ADSB_RF_HEALTH

[Enum] Status flags for ADS-B transponder dynamic output

Value | Field Name | Description
--- | --- | ---
0 | UAVIONIX_ADSB_RF_HEALTH_INITIALIZING |
1 | UAVIONIX_ADSB_RF_HEALTH_OK |
2 | UAVIONIX_ADSB_RF_HEALTH_FAIL_TX |
16 | UAVIONIX_ADSB_RF_HEALTH_FAIL_RX |

### UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE

[Enum] Definitions for aircraft size

Value | Field Name | Description
--- | --- | ---
0 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_NO_DATA |
1 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L15M_W23M |
2 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L25M_W28P5M |
3 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L25_34M |
4 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L35_33M |
5 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L35_38M |
6 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L45_39P5M |
7 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L45_45M |
8 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L55_45M |
9 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L55_52M |
10 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L65_59P5M |
11 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L65_67M |
12 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L75_W72P5M |
13 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L75_W80M |
14 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L85_W80M |
15 | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L85_W90M |

### UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT

[Enum] GPS lataral offset encoding

Value | Field Name | Description
--- | --- | ---
0 | UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_NO_DATA |
1 | UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_LEFT_2M |
2 | UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_LEFT_4M |
3 | UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_LEFT_6M |
4 | UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_RIGHT_0M |
5 | UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_RIGHT_2M |
6 | UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_RIGHT_4M |
7 | UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_RIGHT_6M |

### UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON

[Enum] GPS longitudinal offset encoding

Value | Field Name | Description
--- | --- | ---
0 | UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON_NO_DATA |
1 | UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON_APPLIED_BY_SENSOR |

### UAVIONIX_ADSB_EMERGENCY_STATUS

[Enum] Emergency status encoding

Value | Field Name | Description
--- | --- | ---
0 | UAVIONIX_ADSB_OUT_NO_EMERGENCY |
1 | UAVIONIX_ADSB_OUT_GENERAL_EMERGENCY |
2 | UAVIONIX_ADSB_OUT_LIFEGUARD_EMERGENCY |
3 | UAVIONIX_ADSB_OUT_MINIMUM_FUEL_EMERGENCY |
4 | UAVIONIX_ADSB_OUT_NO_COMM_EMERGENCY |
5 | UAVIONIX_ADSB_OUT_UNLAWFUL_INTERFERANCE_EMERGENCY |
6 | UAVIONIX_ADSB_OUT_DOWNED_AIRCRAFT_EMERGENCY |
7 | UAVIONIX_ADSB_OUT_RESERVED |

## MAVLink Commands (MAV_CMD)

> MAVLink commands (MAV_CMD) and messages are different! These commands define the values of up to 7 parameters that are packaged INSIDE specific messages used in the Mission Protocol and Command Protocol. Use commands for actions in missions or if you need acknowledgment and/or retry logic from a request. Otherwise use messages.

## MAVLink Messages

### UAVIONIX_ADSB_OUT_CFG ( #10001 )

[Message] (MAVLink 2) Static data to configure the ADS-B transponder (send within 10 sec of a POR and every 10 sec thereafter)

Field Name | Type | Units | Values | Description
--- | --- | --- | --- | ---
ICAO | uint32_t |  |  | Vehicle address (24 bit)
callsign | char[9] |  |  | Vehicle identifier (8 characters, null terminated, valid characters are A-Z, 0-9, " " only)
emitterType | uint8_t |  | ADSB_EMITTER_TYPE | Transmitting vehicle type. See ADSB_EMITTER_TYPE enum
aircraftSize | uint8_t |  | UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE | Aircraft length and width encoding (table 2-35 of DO-282B)
gpsOffsetLat | uint8_t |  | UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT | GPS antenna lateral offset (table 2-36 of DO-282B)
gpsOffsetLon | uint8_t |  | UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON | GPS antenna longitudinal offset from nose [if non-zero, take position (in meters) divide by 2 and add one] (table 2-37 DO-282B)
stallSpeed | uint16_t | cm/s |  | Aircraft stall speed in cm/s
rfSelect | uint8_t |  | UAVIONIX_ADSB_OUT_RF_SELECT | ADS-B transponder receiver and transmit enable flags

### UAVIONIX_ADSB_OUT_DYNAMIC ( #10002 )

[Message] (MAVLink 2) Dynamic data used to generate ADS-B out transponder data (send at 5Hz)

Field Name | Type | Units | Values | Description
--- | --- | --- | --- | ---
utcTime | uint32_t | s |  | UTC time in seconds since GPS epoch (Jan 6, 1980). If unknown set to UINT32_MAX
gpsLat | int32_t | degE7 |  | Latitude WGS84 (deg * 1E7). If unknown set to INT32_MAX
gpsLon | int32_t | degE7 |  | Longitude WGS84 (deg * 1E7). If unknown set to INT32_MAX
gpsAlt | int32_t | mm |  | Altitude (WGS84). UP +ve. If unknown set to INT32_MAX
gpsFix | uint8_t |  | UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX | 0-1: no fix, 2: 2D fix, 3: 3D fix, 4: DGPS, 5: RTK
numSats | uint8_t |  |  | Number of satellites visible. If unknown set to UINT8_MAX
baroAltMSL | int32_t | mbar |  | Barometric pressure altitude (MSL) relative to a standard atmosphere of 1013.2 mBar and NOT bar corrected altitude (m * 1E-3). (up +ve). If unknown set to INT32_MAX
accuracyHor | uint32_t | mm |  | Horizontal accuracy in mm (m * 1E-3). If unknown set to UINT32_MAX
accuracyVert | uint16_t | cm |  | Vertical accuracy in cm. If unknown set to UINT16_MAX
accuracyVel | uint16_t | mm/s |  | Velocity accuracy in mm/s (m * 1E-3). If unknown set to UINT16_MAX
velVert | int16_t | cm/s |  | GPS vertical speed in cm/s. If unknown set to INT16_MAX
velNS | int16_t | cm/s |  | North-South velocity over ground in cm/s North +ve. If unknown set to INT16_MAX
VelEW | int16_t | cm/s |  | East-West velocity over ground in cm/s East +ve. If unknown set to INT16_MAX
emergencyStatus | uint8_t |  | UAVIONIX_ADSB_EMERGENCY_STATUS | Emergency status
state | uint16_t |  | UAVIONIX_ADSB_OUT_DYNAMIC_STATE | ADS-B transponder dynamic input state flags
squawk | uint16_t |  |  | Mode A code (typically 1200 [0x04B0] for VFR)

### UAVIONIX_ADSB_TRANSCEIVER_HEALTH_REPORT ( #10003 )

[Message] (MAVLink 2) Transceiver heartbeat with health report (updated every 10s)

Field Name | Type | Values | Description
--- | --- | --- | ---
rfHealth | uint8_t | UAVIONIX_ADSB_RF_HEALTH | ADS-B transponder messages