Post · 44 min read· pp. 382–406

Dialect: development

This dialect contains messages that are proposed for inclusion in the common set, in order to ease development of prototype implementations. They should be considered a 'work in progress' and not included in production builds.

This topic is a human-readable form of the XML definition file: development.xml.

INFO

  • MAVLink 2 extension fields are displayed in blue.
  • Entities from dialects are displayed only as headings (with link to original)

Protocol dialect: 0

Protocol version: 0

Summary

TypeDefinedIncluded
Messages15235
Enums16159
Commands8171

The following sections list all entities in the dialect (both included and defined in this file).

Messages

ESC_EEPROM (292) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

ESC EEPROM data message for reading and writing ESC configuration.

Supports multiple ESC firmware types including AM32, Bluejay, and BLHeli32. ESC data is read by sending the MAV_CMD_REQUEST_MESSAGE with param1=292 and param2=esc_index, where esc_index is the zero-indexed ESC number for the corresponding motor, and 255 is used to request data for all ESC. The message can be sent to set the ESC value. For write requests, a bitmask allows selective writing of specific bytes to avoid corrupting unchanged values.

The data format is opaque to the autopilot. A GCS is required to understand the format in order to create an appropriate UI for display and setting configuration values, and to inform users when the ESC uses an unsupported data format. Note that for AM32 EEPROMs the data layout is defined in: https://github.com/am32-firmware/AM32/blob/main/Inc/eeprom.h (the second byte in the structure is the eeprom_version). The firmware field indicates which ESC firmware is in use, allowing the GCS to interpret the data correctly.

Field NameTypeValuesDescription
target_systemuint8_tSystem ID (ID of target system, normally flight controller).
target_componentuint8_tComponent ID (normally 0 for broadcast).
firmwareuint8_tESC_FIRMWAREESC firmware type.
msg_indexuint8_tZero-indexed sequence number of this message when multiple messages are required to transfer the complete EEPROM data. The first message has index 0. For single-message transfers, set to 0.
msg_countuint8_tTotal number of messages required to transfer the complete EEPROM data. For single-message transfers, set to 1. Receivers should collect all messages from index 0 to msg_count-1 before reconstructing the complete data.
esc_indexuint8_tmax:254Index of the ESC (0 = ESC1, 1 = ESC2, etc.).
write_maskuint32_t[6]Bitmask indicating which bytes in the data array should be written. Each bit corresponds to a byte index in the data array (bit 0 of write_mask[0] = data[0], bit 31 of write_mask[0] = data[31], bit 0 of write_mask[1] = data[32], etc.). Set bits indicate bytes to write, cleared bits indicate bytes to skip. This allows precise updates of individual parameters without overwriting the entire EEPROM.
lengthuint8_tmax:192Number of valid bytes in data array.
datauint8_t[192]Raw ESC EEPROM data. Unused bytes should be set to zero.

SET_VELOCITY_LIMITS (354) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Set temporary maximum limits for horizontal speed, vertical speed and yaw rate.

The consumer must stream the current limits in VELOCITY_LIMITS at 1 Hz or more (when limits are being set). The consumer should latch the limits until a new limit is received or the mode is changed.

Field NameTypeUnitsDescription
target_systemuint8_tSystem ID (0 for broadcast).
target_componentuint8_tComponent ID (0 for broadcast).
horizontal_speed_limitfloatm/sLimit for horizontal movement in MAV_FRAME_LOCAL_NED. NaN: Field not used (ignore)
vertical_speed_limitfloatm/sLimit for vertical movement in MAV_FRAME_LOCAL_NED. NaN: Field not used (ignore)
yaw_rate_limitfloatrad/sLimit for vehicle turn rate around its yaw axis. NaN: Field not used (ignore)

VELOCITY_LIMITS (355) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Current limits for horizontal speed, vertical speed and yaw rate, as set by SET_VELOCITY_LIMITS.

Field NameTypeUnitsDescription
horizontal_speed_limitfloatm/sLimit for horizontal movement in MAV_FRAME_LOCAL_NED. NaN: No limit applied
vertical_speed_limitfloatm/sLimit for vertical movement in MAV_FRAME_LOCAL_NED. NaN: No limit applied
yaw_rate_limitfloatrad/sLimit for vehicle turn rate around its yaw axis. NaN: No limit applied

BATTERY_STATUS_V2 (369) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Battery dynamic information.

This should be streamed (nominally at 1Hz). Static/invariant battery information is sent in BATTERY_INFO. Note that smart batteries should set the MAV_BATTERY_STATUS_FLAGS_CAPACITY_RELATIVE_TO_FULL bit to indicate that supplied capacity values are relative to a battery that is known to be full. Power monitors would not set this bit, indicating that capacity_consumed is relative to drone power-on, and that other values are estimated based on the assumption that the battery was full on power-on.

Field NameTypeUnitsValuesDescription
iduint8_tBattery ID [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
temperatureint16_tcdegCinvalid:INT16_MAXTemperature of the whole battery pack (not internal electronics). INT16_MAX field not provided.
voltagefloatVinvalid:NaNBattery voltage (total). NaN: field not provided.
currentfloatAinvalid:NaNBattery current (through all cells/loads). Positive value when discharging and negative if charging. NaN: field not provided.
capacity_consumedfloatAhinvalid:NaNConsumed charge. NaN: field not provided. This is either the consumption since power-on or since the battery was full, depending on the value of MAV_BATTERY_STATUS_FLAGS_CAPACITY_RELATIVE_TO_FULL.
capacity_remainingfloatAhinvalid:NaNRemaining charge (until empty). NaN: field not provided. Note: If MAV_BATTERY_STATUS_FLAGS_CAPACITY_RELATIVE_TO_FULL is unset, this value is based on the assumption the battery was full when the system was powered.
state_of_chargefloat%invalid:NaNState of Charge (SoC). Remaining capacity relative to current fully-charged capacity as a percentage. Values: [0-100], NaN: field not provided. Note that the value may be calculated from design_capacity if current full_charge_capacity is not known (see BATTERY_INFO).
status_flagsuint32_tMAV_BATTERY_STATUS_FLAGSFault, health, readiness, and other status indications.

RC_CHANNELS_OVERRIDE_V2 (421) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Highly bandwidth-efficient RC override message for professional networked operations (LTE, Zigbee, GCP). Supersedes RC_CHANNELS_OVERRIDE by adding 32-channel support and a bitmask for multi-master conflict avoidance. Uses centered-at-zero values and extension-field placement to maximize MAVLink 2 trailing-zero truncation.

Field NameTypeDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
active_maskuint32_tBitmap of included channels (bit 0 = CH1). 1: Valid/Override, 0: Ignore.
channels ++int16_t[32]RC channels in centered 13-bit format. Range: -4096 to 4096, Center: 0. Conversion to PWM: (x * 5/32) + 1500. Unused channels must be set to 0 to enable MAVLink 2 trailing-zero trimming.

GNSS_INTEGRITY (441) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Information about key components of GNSS receivers, like signal authentication, interference and system errors.

Field NameTypeUnitsValuesDescription
iduint8_tGNSS receiver id. Must match instance ids of other messages from same receiver. [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
system_errorsuint32_tGPS_SYSTEM_ERROR_FLAGSErrors in the GPS system.
authentication_stateuint8_tGPS_AUTHENTICATION_STATESignal authentication state of the GPS system.
jamming_stateuint8_tGPS_JAMMING_STATESignal jamming state of the GPS system.
spoofing_stateuint8_tGPS_SPOOFING_STATESignal spoofing state of the GPS system.
raim_stateuint8_tGPS_RAIM_STATEThe state of the RAIM processing.
raim_hfomuint16_tcminvalid:UINT16_MAXHorizontal expected accuracy using satellites successfully validated using RAIM.
raim_vfomuint16_tcminvalid:UINT16_MAXVertical expected accuracy using satellites successfully validated using RAIM.
corrections_qualityuint8_tinvalid:UINT8_MAX min:0 max:10An abstract value representing the estimated quality of incoming corrections, or 255 if not available.
system_status_summaryuint8_tinvalid:UINT8_MAX min:0 max:10An abstract value representing the overall status of the receiver, or 255 if not available.
gnss_signal_qualityuint8_tinvalid:UINT8_MAX min:0 max:10An abstract value representing the quality of incoming GNSS signals, or 255 if not available.
post_processing_qualityuint8_tinvalid:UINT8_MAX min:0 max:10An abstract value representing the estimated PPK quality, or 255 if not available.

EFI_PERFORMANCE (442) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

EFI performance and health telemetry. Primarily intended for debugging EFI system faults to determine whether problems are within the engine, fuel pump, actuators, or the ECU. Nominal stream rate is 1 Hz. Core engine telemetry (RPM, temperatures, pressures, fuel flow) is carried in EFI_STATUS; this message carries the electrical/actuator/diagnostic data not present there.

Field NameTypeUnitsValuesDescription
ecu_indexuint8_tElectronic Control Unit (ECU) index for systems with multiple EFI units. Set to 0 for the first (or only) ECU. [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
fuel_pump_duty_cycleuint8_t%invalid:UINT8_MAX min:0 max:100Fuel pump power output, as a percentage of maximum. 0 = off, 100 = full power.
fuel_pump_voltageuint16_tmVinvalid:UINT16_MAXFuel pump supply voltage.
fuel_pump_currentuint16_tcAinvalid:UINT16_MAXFuel pump current draw.
ecu_supply_voltageuint16_tmVinvalid:UINT16_MAXECU supply voltage.
ecu_currentuint16_tcAinvalid:UINT16_MAXECU current draw.
ecu_temperatureint16_tcdegCinvalid:INT16_MAXECU/electronics board temperature.
ecu_cpu_loaduint8_t%invalid:UINT8_MAX min:0 max:100ECU processor load.
servo_supply_voltageuint16_tmVinvalid:UINT16_MAXThrottle-servo / actuator supply voltage.
servo_output_leveluint8_t%invalid:UINT8_MAX min:0 max:100Electronic-throttle / servo commanded output level.
water_pump_duty_cycleuint8_t%invalid:UINT8_MAX min:0 max:100Coolant-pump power output, as a percentage of maximum.
injector_duty_cycleuint8_t%invalid:UINT8_MAX min:0 max:100Primary injector duty cycle.
fuel_mass_ratefloatg/mininvalid:NaNInstantaneous fuel consumption by mass. NaN if not provided.
commanded_rpmfloatrpminvalid:NaNGovernor/target RPM setpoint.
engine_runtimeuint32_tsinvalid:UINT32_MAXCumulative engine run time (hobbs).
error_memory_countuint8_tinvalid:UINT8_MAXNumber of faults currently stored in the ECU error memory.
boost_pressurefloatkPainvalid:NaNForced-induction boost pressure. NaN if not provided.
coolant_pressurefloatkPainvalid:NaNCoolant-circuit pressure. NaN if not provided.
engine_torqueint16_t%invalid:INT16_MAXPercent engine torque (signed; negative = motoring/braking).
status_flagsuint64_tEFI_PERFORMANCE_STATUS_FLAGSEFI status flags.

TARGET_ABSOLUTE (510) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Current motion information from sensors on a target

Field NameTypeUnitsValuesDescription
timestampuint64_tusTimestamp (UNIX epoch time).
iduint8_tThe ID of the target if multiple targets are present
sensor_capabilitiesuint8_tTARGET_ABSOLUTE_SENSOR_CAPABILITY_FLAGSBitmap to indicate the sensor's reporting capabilities
latint32_tdegE7Target's latitude (WGS84)
lonint32_tdegE7Target's longitude (WGS84)
altfloatmTarget's altitude (AMSL)
velfloat[3]m/sinvalid:[0]Target's velocity in its body frame
accfloat[3]m/s/sinvalid:[0]Linear target's acceleration in its body frame
q_targetfloat[4]invalid:[0]Quaternion of the target's orientation from its body frame to the vehicle's NED frame.
ratesfloat[3]rad/sinvalid:[0]Target's roll, pitch and yaw rates
position_stdfloat[2]mStandard deviation of horizontal (eph) and vertical (epv) position errors
vel_stdfloat[3]m/sStandard deviation of the target's velocity in its body frame
acc_stdfloat[3]m/s/sStandard deviation of the target's acceleration in its body frame

TARGET_RELATIVE (511) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

The location of a target measured by MAV's onboard sensors.

Field NameTypeUnitsValuesDescription
timestampuint64_tusTimestamp (UNIX epoch time)
iduint8_tThe ID of the target if multiple targets are present [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
frameuint8_tTARGET_OBS_FRAMECoordinate frame used for following fields.
xfloatmX Position of the target in TARGET_OBS_FRAME
yfloatmY Position of the target in TARGET_OBS_FRAME
zfloatmZ Position of the target in TARGET_OBS_FRAME
pos_stdfloat[3]mStandard deviation of the target's position in TARGET_OBS_FRAME
yaw_stdfloatradStandard deviation of the target's orientation in TARGET_OBS_FRAME
q_targetfloat[4]Quaternion of the target's orientation from the target's frame to the TARGET_OBS_FRAME (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
q_sensorfloat[4]Quaternion of the sensor's orientation from TARGET_OBS_FRAME to vehicle-carried NED. (Ignored if set to (0,0,0,0)) (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
typeuint8_tLANDING_TARGET_TYPEType of target

CONTROL_STATUS (512) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Information about GCS(s) in control of this MAV.

This should be broadcast at low rate (nominally 1 Hz) and emitted when ownership or takeover status change. Components in the system should only accept "state changing commands/messages" from any system id in gcs_main or gcs_secondary.

  • In single-owner mode there is a single GCS that can send "state changing commands/messages" listed in gcs_main (gcs_secondary must be set to all-zero).
  • In multi-owner mode, all GCS with ids in gcs_main and gcs_secondary can send "state changing commands/messages". However gcs_main is the only GCS that can perform "special controlled operations" such as manual control.
  • Control over ownership of the gcs_main role is requested using MAV_CMD_REQUEST_OPERATOR_CONTROL.
  • GCS in gcs_secondary are set by the flight stack (cannot be set by this mechanism). It should only include IDs for connected GCS. If more than 11 GCS are in control and visible, the flight stack will at most be able to publish 11.
Field NameTypeValuesDescription
flagsuint8_tGCS_CONTROL_STATUS_FLAGSControl status. For example, whether takeover of the gcs_main role is allowed, and whether this CONTROL_STATUS instance defines the default controlling GCS for the whole system.
gcs_mainuint8_tinvalid:0System ID of GCS in control. 0: no GCS in control.
gcs_secondaryuint8_t[10]invalid:[0,]System IDs from which the system can receive state-changing commands/messages in multi-control mode. All values should be zero for single-owner mode.

RANGING_BEACON (513) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Range information from a radio beacon for trilateration-based positioning.

This message is telemetry intended for consumption by an autopilot (MAVLink does not define the mechanism used to determine the range).

Field NameTypeUnitsValuesDescription
time_usecuint64_tusTimestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
beacon_iduint16_tID of the ranging beacon/station. [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
rangeuint32_tmminvalid:UINT32_MAXRange measurement between a beacon and a vehicle.
latint32_tdegE7invalid:INT32_MAXBeacon latitude (WGS84).
lonint32_tdegE7invalid:INT32_MAXBeacon longitude (WGS84).
altfloatminvalid:NaNBeacon altitude (frame defined in alt_type).
alt_typeuint8_tRANGING_BEACON_ALT_TYPEAltitude frame for alt field. RANGING_BEACON_ALT_TYPE_WGS84 (0) preferred.
hacc_estuint32_tmminvalid:UINT32_MAXBeacon 1-sigma horizontal accuracy estimate.
vacc_estuint32_tmminvalid:UINT32_MAXBeacon 1-sigma vertical accuracy estimate.
carrier_frequint16_tMHzinvalid:UINT16_MINRanging carrier frequency.
range_accuracyuint32_tmminvalid:UINT32_MAXEstimated 1-sigma range measurement accuracy.
sequenceuint8_tMeasurement sequence number.
statusuint8_tRANGING_BEACON_STATUS_FLAGRanging beacon status.

ESTIMATOR_SENSOR_FUSION_STATUS (514) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Status of estimator sensor fusion sources. Each array is indexed by ESTIMATOR_SENSOR_FUSION_SOURCE - 1. Each element is a per-instance bitmask (bit 0 = instance 0, etc.). For single-instance sources only bit 0 is used. For multi-instance sources like AGP, multiple bits may be set.

Field NameTypeDescription
intendeduint8_t[9]Per-source instance bitmask of sensors the estimator intends to fuse (reflects CTRL params with runtime overrides via MAV_CMD_ESTIMATOR_SENSOR_ENABLE).
activeuint8_t[9]Per-source instance bitmask of sensors the estimator is actively fusing.
test_ratiofloat[9]Per-source normalized innovation test ratio. NaN if not available.

MANUAL_INPUT_STATUS (515) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Status of the manual control input arbitration on the autopilot: which source is currently active and, when a MAVLink enabled input device is selected, which system/component is providing it. Emitted by the autopilot for ground stations to display the active manual control source.

Field NameTypeValuesDescription
sourceuint8_tMAV_MANUAL_INPUT_SOURCECurrent manual control source active.
sender_system_iduint8_tSystem ID of the MAVLink enabled input device currently providing manual control. Set whenever a MAVLink enabled input device is contributing, i.e. for both MAV_MANUAL_INPUT_SOURCE_MAVLINK and MAV_MANUAL_INPUT_SOURCE_MIXED. 0 otherwise.
sender_component_iduint8_tComponent ID of the MAVLink enabled input device currently providing manual control. Set whenever a MAVLink enabled input device is contributing, i.e. for both MAV_MANUAL_INPUT_SOURCE_MAVLINK and MAV_MANUAL_INPUT_SOURCE_MIXED. 0 otherwise.

DISTANCE_SENSOR_INFO (516) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Static characteristics of a distance sensor (onboard rangefinder).

Measurements are sent in DISTANCE_SENSOR_V2.

Field NameTypeUnitsValuesDescription
iduint8_tSensor ID. Matches the id field of DISTANCE_SENSOR_V2. [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
typeuint8_tMAV_DISTANCE_SENSORType of distance sensor.
min_distancefloatminvalid:NaNMinimum distance the sensor can measure.
max_distancefloatminvalid:NaNMaximum distance the sensor can measure.
orientationuint8_tMAV_SENSOR_ORIENTATIONDirection the sensor faces.
horizontal_fovfloatradinvalid:NaN min:0Horizontal Field of View (angle) where the distance measurement is valid. NaN if unknown.
vertical_fovfloatradinvalid:NaN min:0Vertical Field of View (angle) where the distance measurement is valid. NaN if unknown.
quaternion ++float[4]invalid:[0]Quaternion of the sensor orientation in vehicle body frame (w, x, y, z order, zero-rotation is 1, 0, 0, 0). Zero-rotation is along the vehicle body x-axis. This field is required if orientation is set to MAV_SENSOR_ROTATION_CUSTOM. Set it to 0 if invalid.

DISTANCE_SENSOR_V2 (517) — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Distance sensor measurement, for an onboard rangefinder described by DISTANCE_SENSOR_INFO. Streamed at the sensor update rate.

Field NameTypeUnitsDescription
time_boot_msuint32_tmsTimestamp (time since system boot)
iduint8_tSensor ID. Matches the id field of DISTANCE_SENSOR_INFO. [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
distancefloatmCurrent distance reading. NaN if not provided.
signal_qualityint8_t%Signal quality (sensor-type specific). Represents the relation of the signal strength with the target reflectivity, distance, size or aspect, but normalised as a percentage. Values: [0-100], 0 = unusable signal, 100 = perfect signal. INT8_MAX = unknown/not provided.

Enumerated Types

MAV_BATTERY_STATUS_FLAGS — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

(Bitmask) Battery status flags for fault, health and state indication.

ValueNameDescription
1MAV_BATTERY_STATUS_FLAGS_NOT_READY_TO_USEThe battery is not ready to use (fly). Set if the battery has faults or other conditions that make it unsafe to fly with. Note: It will be the logical OR of other status bits (chosen by the manufacturer/integrator).
2MAV_BATTERY_STATUS_FLAGS_CHARGINGBattery is charging.
4MAV_BATTERY_STATUS_FLAGS_CELL_BALANCINGBattery is cell balancing (during charging). Not ready to use (MAV_BATTERY_STATUS_FLAGS_NOT_READY_TO_USE may be set).
8MAV_BATTERY_STATUS_FLAGS_FAULT_CELL_IMBALANCEBattery cells are not balanced. Not ready to use.
16MAV_BATTERY_STATUS_FLAGS_AUTO_DISCHARGINGBattery is auto discharging (towards storage level). Not ready to use (MAV_BATTERY_STATUS_FLAGS_NOT_READY_TO_USE would be set).
32MAV_BATTERY_STATUS_FLAGS_REQUIRES_SERVICEBattery requires service (not safe to fly). This is set at vendor discretion. It is likely to be set for most faults, and may also be set according to a maintenance schedule (such as age, or number of recharge cycles, etc.).
64MAV_BATTERY_STATUS_FLAGS_BAD_BATTERYBattery is faulty and cannot be repaired (not safe to fly). This is set at vendor discretion. The battery should be disposed of safely.
128MAV_BATTERY_STATUS_FLAGS_PROTECTIONS_ENABLEDAutomatic battery protection monitoring is enabled. When enabled, the system will monitor for certain kinds of faults, such as cells being over-voltage. If a fault is triggered then and protections are enabled then a safety fault (MAV_BATTERY_STATUS_FLAGS_FAULT_PROTECTION_SYSTEM) will be set and power from the battery will be stopped. Note that battery protection monitoring should only be enabled when the vehicle is landed. Once the vehicle is armed, or starts moving, the protections should be disabled to prevent false positives from disabling the output.
256MAV_BATTERY_STATUS_FLAGS_FAULT_PROTECTION_SYSTEMThe battery fault protection system had detected a fault and cut all power from the battery. This will only trigger if MAV_BATTERY_STATUS_FLAGS_PROTECTIONS_ENABLED is set. Other faults like MAV_BATTERY_STATUS_FLAGS_FAULT_OVER_VOLT may also be set, indicating the cause of the protection fault.
512MAV_BATTERY_STATUS_FLAGS_FAULT_OVER_VOLTOne or more cells are above their maximum voltage rating.
1024MAV_BATTERY_STATUS_FLAGS_FAULT_UNDER_VOLTOne or more cells are below their minimum voltage rating. A battery that had deep-discharged might be irrepairably damaged, and set both MAV_BATTERY_STATUS_FLAGS_FAULT_UNDER_VOLT and MAV_BATTERY_STATUS_FLAGS_BAD_BATTERY.
2048MAV_BATTERY_STATUS_FLAGS_FAULT_OVER_TEMPERATUREOver-temperature fault.
4096MAV_BATTERY_STATUS_FLAGS_FAULT_UNDER_TEMPERATUREUnder-temperature fault.
8192MAV_BATTERY_STATUS_FLAGS_FAULT_OVER_CURRENTOver-current fault.
16384MAV_BATTERY_STATUS_FLAGS_FAULT_SHORT_CIRCUITShort circuit event detected. The battery may or may not be safe to use (check other flags).
32768MAV_BATTERY_STATUS_FLAGS_FAULT_INCOMPATIBLE_VOLTAGEVoltage not compatible with power rail voltage (batteries on same power rail should have similar voltage).
65536MAV_BATTERY_STATUS_FLAGS_FAULT_INCOMPATIBLE_FIRMWAREBattery firmware is not compatible with current autopilot firmware.
131072MAV_BATTERY_STATUS_FLAGS_FAULT_INCOMPATIBLE_CELLS_CONFIGURATIONBattery is not compatible due to cell configuration (e.g. 5s1p when vehicle requires 6s).
262144MAV_BATTERY_STATUS_FLAGS_CAPACITY_RELATIVE_TO_FULLBattery capacity_consumed and capacity_remaining values are relative to a full battery (they sum to the total capacity of the battery). This flag would be set for a smart battery that can accurately determine its remaining charge across vehicle reboots and discharge/recharge cycles. If unset the capacity_consumed indicates the consumption since vehicle power-on, as measured using a power monitor. The capacity_remaining, if provided, indicates the estimated remaining capacity on the assumption that the battery was full on vehicle boot. If unset a GCS is recommended to advise that users fully charge the battery on power on.
2147483648MAV_BATTERY_STATUS_FLAGS_EXTENDEDReserved (not used). If set, this will indicate that an additional status field exists for higher status values.

GCS_CONTROL_STATUS_FLAGS — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

(Bitmask) CONTROL_STATUS flags.

ValueNameDescription
1GCS_CONTROL_STATUS_FLAGS_SYSTEM_MANAGERIf set, this CONTROL_STATUS publishes the controlling GCS(s) of the whole system. If unset, the CONTROL_STATUS indicates the controlling GCS(s) for just the component emitting the message. Note that to request control of the system a GCS should send MAV_CMD_REQUEST_OPERATOR_CONTROL to the component emitting CONTROL_STATUS with this flag set.
2GCS_CONTROL_STATUS_FLAGS_TAKEOVER_ALLOWEDTakeover allowed (requests for control will be granted). If not set requests for control will be rejected, but the controlling GCS will be notified (and may release control or allow takeover).

TARGET_ABSOLUTE_SENSOR_CAPABILITY_FLAGS — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

(Bitmask) These flags indicate the sensor reporting capabilities for TARGET_ABSOLUTE.

TARGET_OBS_FRAME — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

The frame of a target observation from an onboard sensor.

ValueNameDescription
0TARGET_OBS_FRAME_LOCAL_NEDNED local tangent frame (x: North, y: East, z: Down) with origin fixed relative to earth.
1TARGET_OBS_FRAME_BODY_FRDFRD local frame aligned to the vehicle's attitude (x: Forward, y: Right, z: Down) with an origin that travels with vehicle.
2TARGET_OBS_FRAME_LOCAL_OFFSET_NEDNED local tangent frame (x: North, y: East, z: Down) with an origin that travels with vehicle.
3TARGET_OBS_FRAME_OTHEROther sensor frame for target observations neither in local NED nor in body FRD.

GPS_SYSTEM_ERROR_FLAGS — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

(Bitmask) Flags indicating errors in a GPS receiver.

ValueNameDescription
1GPS_SYSTEM_ERROR_INCOMING_CORRECTIONSThere are problems with incoming correction streams.
2GPS_SYSTEM_ERROR_CONFIGURATIONThere are problems with the configuration.
4GPS_SYSTEM_ERROR_SOFTWAREThere are problems with the software on the GPS receiver.
8GPS_SYSTEM_ERROR_ANTENNAThere are problems with an antenna connected to the GPS receiver.
16GPS_SYSTEM_ERROR_EVENT_CONGESTIONThere are problems handling all incoming events.
32GPS_SYSTEM_ERROR_CPU_OVERLOADThe GPS receiver CPU is overloaded.
64GPS_SYSTEM_ERROR_OUTPUT_CONGESTIONThe GPS receiver is experiencing output congestion.

GPS_AUTHENTICATION_STATE — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Signal authentication state in a GPS receiver.

ValueNameDescription
0GPS_AUTHENTICATION_STATE_UNKNOWNThe GPS receiver does not provide GPS signal authentication info.
1GPS_AUTHENTICATION_STATE_INITIALIZINGThe GPS receiver is initializing signal authentication.
2GPS_AUTHENTICATION_STATE_ERRORThe GPS receiver encountered an error while initializing signal authentication.
3GPS_AUTHENTICATION_STATE_OKThe GPS receiver has correctly authenticated all signals.
4GPS_AUTHENTICATION_STATE_DISABLEDGPS signal authentication is disabled on the receiver.

GPS_JAMMING_STATE — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Signal jamming state in a GPS receiver.

ValueNameDescription
0GPS_JAMMING_STATE_UNKNOWNThe GPS receiver does not provide GPS signal jamming info.
1GPS_JAMMING_STATE_NOT_JAMMEDThe GPS receiver detected no signal jamming.
2GPS_JAMMING_STATE_MITIGATEDThe GPS receiver detected and mitigated signal jamming.
3GPS_JAMMING_STATE_DETECTEDThe GPS receiver detected signal jamming.

GPS_SPOOFING_STATE — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Signal spoofing state in a GPS receiver.

ValueNameDescription
0GPS_SPOOFING_STATE_UNKNOWNThe GPS receiver does not provide GPS signal spoofing info.
1GPS_SPOOFING_STATE_NOT_SPOOFEDThe GPS receiver detected no signal spoofing.
2GPS_SPOOFING_STATE_MITIGATEDThe GPS receiver detected and mitigated signal spoofing.
3GPS_SPOOFING_STATE_DETECTEDThe GPS receiver detected signal spoofing but still has a fix.

GPS_RAIM_STATE — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

State of RAIM processing.

ValueNameDescription
0GPS_RAIM_STATE_UNKNOWNRAIM capability is unknown.
1GPS_RAIM_STATE_DISABLEDRAIM is disabled.
2GPS_RAIM_STATE_OKRAIM integrity check was successful.
3GPS_RAIM_STATE_FAILEDRAIM integrity check failed.

ACTUATOR_TEST_GROUP — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Actuator groups to test in MAV_CMD_ACTUATOR_GROUP_TEST.

ValueNameDescription
0ACTUATOR_TEST_GROUP_ROLL_TORQUEActuators that contribute to roll torque.
1ACTUATOR_TEST_GROUP_PITCH_TORQUEActuators that contribute to pitch torque.
2ACTUATOR_TEST_GROUP_YAW_TORQUEActuators that contribute to yaw torque.
3ACTUATOR_TEST_GROUP_COLLECTIVE_TILTActuators that affect collective tilt.
4ACTUATOR_TEST_GROUP_X_THRUSTActuators that contribute to x (longitudinal, positive = forward) thrust.
5ACTUATOR_TEST_GROUP_Y_THRUSTActuators that contribute to y (lateral, positive = right) thrust.
6ACTUATOR_TEST_GROUP_Z_THRUSTActuators that contribute to z (vertical, positive = down) thrust.

ESC_FIRMWARE — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

ESC firmware type identifier.

ValueNameDescription
0ESC_FIRMWARE_UNKNOWNUnknown firmware.
1ESC_FIRMWARE_AM32AM32 open source ESC firmware.
2ESC_FIRMWARE_BLUEJAYBluejay open source ESC firmware.
3ESC_FIRMWARE_BLHELI32BLHeli32 ESC firmware.

RANGING_BEACON_ALT_TYPE — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Altitude reference for RANGING_BEACON alt field.

ValueNameDescription
0RANGING_BEACON_ALT_TYPE_WGS84Altitude above WGS84 ellipsoid.
1RANGING_BEACON_ALT_TYPE_MSLAltitude above Mean Sea Level (AMSL).

RANGING_BEACON_STATUS_FLAG — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

(Bitmask) Status flags for a RANGING_BEACON.

ValueNameDescription
1RANGING_BEACON_STATUS_FLAG_STATION_SIGNAL_POORStation signal is poor. This might indicate channel fading, interference, or other signal quality issues.

ESTIMATOR_SENSOR_FUSION_SOURCE — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Estimator sensor fusion source types. Used in MAV_CMD_ESTIMATOR_SENSOR_ENABLE and as array index in ESTIMATOR_SENSOR_FUSION_STATUS.

MAV_MANUAL_INPUT_SOURCE — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Source of manual control input currently selected by the autopilot's manual control arbitration.

ValueNameDescription
0MAV_MANUAL_INPUT_SOURCE_NONENo manual input messages are currently being provided.
1MAV_MANUAL_INPUT_SOURCE_RCManual input messages are being provided by a radio control (RC) receiver.
2MAV_MANUAL_INPUT_SOURCE_MAVLINKManual input messages are being provided by a MAVLink enabled input device (e.g. via MANUAL_CONTROL messages). The specific device is identified by the sender_system_id and sender_component_id fields.
3MAV_MANUAL_INPUT_SOURCE_MIXEDManual input messages are being provided simultaneously by both a radio control (RC) receiver and a MAVLink enabled input device.

EFI_PERFORMANCE_STATUS_FLAGS — [WIP]

WORK IN PROGRESS: Do not use in stable production environments (it may change).

(Bitmask) Status flags for the EFI Electronic Control Unit (ECU). Reported in EFI_PERFORMANCE. Each bit is an independent boolean condition. A flag that is 0 means either "not asserted" or "not supported by this ECU"; the two cannot be distinguished from the bitmask alone.

ValueNameDescription
1EFI_PERFORMANCE_STATUS_FLAGS_ENGINE_RUNNINGEngine is running.
2EFI_PERFORMANCE_STATUS_FLAGS_STARTER_ACTIVEStarter motor is engaged / engine is cranking.
4EFI_PERFORMANCE_STATUS_FLAGS_ENGINE_SHUTTING_DOWNControlled engine shutdown is in progress.
8EFI_PERFORMANCE_STATUS_FLAGS_EMERGENCY_STOPEmergency stop has been asserted.
16EFI_PERFORMANCE_STATUS_FLAGS_REV_LIMIT_EXCEEDEDEngine rev limiter is active.
32EFI_PERFORMANCE_STATUS_FLAGS_FAULTAn unclassified fault (check-engine) has been detected by the ECU.
64EFI_PERFORMANCE_STATUS_FLAGS_WARNING_LEVEL_1Severity level 1 warning is active.
128EFI_PERFORMANCE_STATUS_FLAGS_WARNING_LEVEL_2Severity level 2 warning is active.
256EFI_PERFORMANCE_STATUS_FLAGS_MAINTENANCE_REQUIREDECU reports that maintenance/service is due.
512EFI_PERFORMANCE_STATUS_FLAGS_COMMS_ERRORECU/engine internal communication error.
1024EFI_PERFORMANCE_STATUS_FLAGS_POWER_REDUCTION_ACTIVEECU is limiting/reducing engine output power.
2048EFI_PERFORMANCE_STATUS_FLAGS_CRANK_SENSOR_FAULTCrankshaft / RPM sensor has faulted.
4096EFI_PERFORMANCE_STATUS_FLAGS_THROTTLE_SENSOR_FAULTThrottle-position sensor has faulted.
8192EFI_PERFORMANCE_STATUS_FLAGS_ENGINE_TEMP_SENSOR_FAULTEngine-temperature sensor has faulted.
16384EFI_PERFORMANCE_STATUS_FLAGS_AIR_TEMP_SENSOR_FAULTIntake-air-temperature sensor has faulted.
32768EFI_PERFORMANCE_STATUS_FLAGS_AIR_PRESSURE_SENSOR_FAULTIntake-air-pressure sensor has faulted.
65536EFI_PERFORMANCE_STATUS_FLAGS_ECU_OVER_TEMPERATUREECU temperature has exceeded the warning threshold.
131072EFI_PERFORMANCE_STATUS_FLAGS_ENGINE_OVER_TEMPERATUREEngine temperature has exceeded the fault threshold (overheating).
262144EFI_PERFORMANCE_STATUS_FLAGS_ENGINE_TEMP_ABOVE_NOMINALEngine temperature is above nominal (warning).
524288EFI_PERFORMANCE_STATUS_FLAGS_ENGINE_TEMP_BELOW_NOMINALEngine temperature is below nominal (not yet warmed up).
1048576EFI_PERFORMANCE_STATUS_FLAGS_EGT_ABOVE_NOMINALExhaust-gas temperature is above nominal.
2097152EFI_PERFORMANCE_STATUS_FLAGS_LOW_COOLANT_LEVELCoolant level is low.
4194304EFI_PERFORMANCE_STATUS_FLAGS_COOLANT_FLOW_FAULTCoolant water-flow fault.
8388608EFI_PERFORMANCE_STATUS_FLAGS_FUEL_PUMP_ACTIVEFuel pump is active.
16777216EFI_PERFORMANCE_STATUS_FLAGS_LOW_FUEL_PRESSUREFuel pressure is below the minimum operating threshold.
33554432EFI_PERFORMANCE_STATUS_FLAGS_HIGH_FUEL_PRESSUREFuel pressure is above the maximum operating threshold.
67108864EFI_PERFORMANCE_STATUS_FLAGS_WATER_IN_FUELWater has been detected in the fuel.
134217728EFI_PERFORMANCE_STATUS_FLAGS_LOW_OIL_PRESSUREOil pressure is below the minimum operating threshold.
268435456EFI_PERFORMANCE_STATUS_FLAGS_HIGH_OIL_PRESSUREOil pressure is above the maximum operating threshold.
536870912EFI_PERFORMANCE_STATUS_FLAGS_LOW_OIL_LEVELOil level is low.
1073741824EFI_PERFORMANCE_STATUS_FLAGS_IGNITION_ACTIVEIgnition system is active.
2147483648EFI_PERFORMANCE_STATUS_FLAGS_IGNITION_REDUNDANCY_LOSTRedundant (dual) ignition degraded - only one spark source is firing.
4294967296EFI_PERFORMANCE_STATUS_FLAGS_PREHEAT_ACTIVEGlow/preheat is active.
8589934592EFI_PERFORMANCE_STATUS_FLAGS_LOW_SUPPLY_VOLTAGEECU supply/system voltage is low.
17179869184EFI_PERFORMANCE_STATUS_FLAGS_CHARGING_ACTIVEAlternator/charging system is active.
34359738368EFI_PERFORMANCE_STATUS_FLAGS_DETONATION_OBSERVEDDetonation/knock has been observed.
68719476736EFI_PERFORMANCE_STATUS_FLAGS_MISFIRE_OBSERVEDMisfire has been observed.
137438953472EFI_PERFORMANCE_STATUS_FLAGS_DEBRIS_DETECTEDForeign debris has been detected.
274877906944EFI_PERFORMANCE_STATUS_FLAGS_HIGH_BOOST_PRESSUREBoost pressure is above threshold.
549755813888EFI_PERFORMANCE_STATUS_FLAGS_EGR_SYSTEM_FAULTExhaust-gas-recirculation (EGR) system fault.

Commands (MAV_CMD)

MAV_CMD_ACTUATOR_GROUP_TEST (309) — [WIP] Command

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Command to test groups of related actuators together.

This might include groups such as the actuators that contribute to roll, pitch, or yaw torque, actuators that contribute to thrust in x, y, z axis, tilt mechanisms, flaps and spoilers, and so on. This is similar to MAV_CMD_ACTUATOR_TEST, except that multiple actuators may be affected. Different groups may also affect the same actuators (as in the case of controls that affect torque in different axes).

Param (Label)DescriptionValues
1 (Group)Actuator group to check, such as actuators related to roll torque.ACTUATOR_TEST_GROUP
2 (Value)Value to set. This is a normalized value across the full range of the tested group [-1,1].min: -1 max: 1
3Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
4Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
5Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
6Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
7Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).

MAV_CMD_DO_SET_SYS_CMP_ID (610) — [WIP] Command

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Set system and component id. This allows moving of a system and all its components to a new system id, or moving a particular component to a new system/component id. Recipients must reject command addressed to broadcast system ID.

Param (Label)DescriptionValues
1 (System ID)New system ID for target component(s). 0: ignore and reject command (broadcast system ID not allowed).min: 1 max: 255 inc: 1
2 (Component ID)New component ID for target component(s). 0: ignore (component IDs don't change).min: 0 max: 255 inc: 1
3 (Reboot)Reboot components after ID change. Any non-zero value triggers the reboot.
4Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
5Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
6Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
7Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).

MAV_CMD_EXTERNAL_ATTITUDE_ESTIMATE (620) — [WIP] Command

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Set an external estimate of vehicle attitude.

This might be used to provide an initial attitude (especially heading) estimate to the estimator (EKF). Angles are defined in a 3-2-1 (yaw-pitch-roll) intrinsic Tait-Bryan sequence.

Param (Label)DescriptionValuesUnits
1 (Roll)Roll angle. Set to NaN if unknown.min: 0 max: 360deg
2 (Pitch)Pitch angle. Set to NaN if unknown.min: 0 max: 360deg
3 (Yaw)Yaw/heading (relative to true north) angle. Set to NaN if unknown.min: 0 max: 360deg
4 (Tilt accuracy)Estimated 1 sigma accuracy of roll and pitch angles. Set to NaN if unknown.deg
5Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
6Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
7 (Yaw accuracy)Estimated 1 sigma accuracy of yaw angle. Set to NaN if unknown.deg

MAV_CMD_CAMERA_START_MTI (2020) — [WIP] Command

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Enable Moving Target Indicators (MTI) on streamed video.

Support for feature can be checked with CAMERA_CAP_FLAGS_HAS_MTI, and disabled with MAV_CMD_CAMERA_STOP_MTI.

Param (Label)DescriptionValues
1 (Target Camera ID)Target camera ID. 7 to 255: MAVLink camera component id. 1 to 6 for cameras attached to the autopilot, which don't have a distinct component id. 0: all cameras. This is used to target specific autopilot-connected cameras. It is also used to target specific cameras when the MAV_CMD is used in a mission.min: 0 max: 255 inc: 1
2Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
3Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
4Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
5Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
6Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
7Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).

MAV_CMD_CAMERA_STOP_MTI (2021) — [WIP] Command

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Disable Moving Target Indicators (MTI) on streamed video.

Param (Label)DescriptionValues
1 (Target Camera ID)Target camera ID. 7 to 255: MAVLink camera component id. 1 to 6 for cameras attached to the autopilot, which don't have a distinct component id. 0: all cameras. This is used to target specific autopilot-connected cameras. It is also used to target specific cameras when the MAV_CMD is used in a mission.min: 0 max: 255 inc: 1
2Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
3Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
4Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
5Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
6Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
7Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).

MAV_CMD_ODID_SET_EMERGENCY (12900) — [WIP] Command

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Used to manually set/unset emergency status for remote id.

This is for compliance with MOC ASTM docs, specifically F358 section 7.7: "Emergency Status Indicator". The requirement can also be satisfied by automatic setting of the emergency status by flight stack, and that approach is preferred. See https://mavlink.io/en/services/opendroneid.html for more information.

Param (Label)DescriptionValues
1 (Number)Set/unset emergency 0: unset, 1: setmin: 0 inc: 1
2Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
3Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
4Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
5Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
6Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
7Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).

MAV_CMD_REQUEST_OPERATOR_CONTROL (32100) — [WIP] Command

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Request exclusive control of a system or special system feature by a GCS.

The operator control protocol supports two modes:

  • In single-owner mode there is a single GCS "owner" that can send state changing operations to the whole system, and this command can be used to request takeover of that ownership role.
  • In multi-owner mode the flight stack allows multiple GCS to be "owners" and send (most) state changing operations (which GCS those are is implementation-dependent, and not controlled by this protocol). However only one GCS owner can control manual input of the vehicle: this command can be used to request takeover of that ownership role.

A controlled system should only accept MAVLink operations that change the state of the vehicle, such as commands and command-like messages, which are sent by its controlling GCS(s) (or from other components in its own system/with the same system id, such as a companion computer). Commands to control the vehicle from other systems should be rejected with MAV_RESULT_NOT_IN_CONTROL (except for this command, which may be acknowledged with MAV_RESULT_ACCEPTED if control is granted). Messages and commands that don't control or change vehicle movement or functionality, such as telemetry requests, may still be send from (and to) a controlled system.

GCS control of the whole system is managed via a single component that we will refer to here as the "system manager component". This component streams the CONTROL_STATUS message and sets the GCS_CONTROL_STATUS_FLAGS_SYSTEM_MANAGER flag. Other components in the system should monitor for the CONTROL_STATUS message with this flag, and set their controlling GCS(s) to match its published system id(s). A GCS that wants to control the system should also monitor for the same message and flag, and address the MAV_CMD_REQUEST_OPERATOR_CONTROL to its component id. Note that integrators are required to ensure that there is only one system manager component in the system (i.e. one component emitting the message with GCS_CONTROL_STATUS_FLAGS_SYSTEM_MANAGER set).

The MAV_CMD_REQUEST_OPERATOR_CONTROL command is sent by a GCS to the system manager component to request or release control of a system, specifying whether subsequent takeover requests from another GCS are automatically granted, or require permission. The command may request control for a single GCS system ID or a range of GCS system IDs: the sender of the command must have a system id that is in the requested range.

The system manager component should grant control to the requested GCS(s) if the system does not require takeover permission (or is uncontrolled) and ACK the request with MAV_RESULT_ACCEPTED. The system manager component should then stream CONTROL_STATUS indicating its controlling system(s): all other components in the system (with the same system id) should monitor this message and set their own controlling GCS(s) to match that of the system manager component.

If the system manager component cannot grant control because takeover requires permission, the request should be rejected with MAV_RESULT_FAILED. The system manager component should then send this same command to the owning GCS with the lowest system ID that has a heartbeat, in order to notify of the request. That owning GCS must ACK with MAV_RESULT_ACCEPTED, and may choose to release control of the vehicle, or re-request control with the takeover bit set to allow permission. In case it choses to re-request control with takeover bit set to allow permission, the requester GCS will only have 10 seconds to get control, otherwise owning GCS will re-request control with takeover bit set to disallow permission, and requester GCS will need repeat the request if still interested in getting control. Note that the pilots of both GCS should coordinate safe handover offline.

While any owning GCS are connected the system should consider itself connected to a GCS, and still owned by all GCS (even those that are not connected). If all owning GCS are disconnected the vehicle should GCS loss failsafe, and broadcast a CONTROL_STATUS indicating that it has no owner(s). In simultaneous-owner scenarios this allows an owner to disconnect and reconnect without the vehicle failsafing, provided at least one owner is connected.

Note that in most systems the only controlled component will be the "system manager component", and that will be the autopilot (although it could be a companion computer). However separate GCS control of a particular component is also permitted, if supported by the component. In this case the GCS will address MAV_CMD_REQUEST_OPERATOR_CONTROL to the specific component it wants to control. The component will then stream CONTROL_STATUS for its controlling GCS (it must not set GCS_CONTROL_STATUS_FLAGS_SYSTEM_MANAGER). The component should fall back to the system GCS (if any) when it is not directly controlled, and may stop emitting CONTROL_STATUS. The flow is otherwise the same as for requesting control over the whole system.

Param (Label)DescriptionValuesUnits
1 (Action)0: Release control, 1: Request control.
2 (Allow takeover)Enable automatic granting of ownership on request (by default reject request and notify current owner). 0: Ask current owner and reject request, 1: Allow automatic takeover.
3 (Request timeout)Timeout in seconds before a request to a GCS to allow takeover is assumed to be rejected. This is used to display the timeout graphically on requester and GCS in control.min: 3 max: 60s
4 (GCS Sysid)System ID of GCS requesting control. For a range of GCS in control, this the minimum id (and the sender system ID may be anywhere in the range).
5Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
6Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
7Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).

MAV_CMD_ESTIMATOR_SENSOR_ENABLE (43006) — [WIP] Command

WORK IN PROGRESS: Do not use in stable production environments (it may change).

Enable or disable a specific estimator sensor fusion source at runtime.

This allows a GCS or companion computer to dynamically control which sensors the estimator fuses without changing parameters.

Param (Label)DescriptionValues
1 (Source)Sensor fusion source type.ESTIMATOR_SENSOR_FUSION_SOURCE
2 (Instance)Sensor instance (0-based, for multi-instance).min: 0 inc: 1
3 (Enable)Enable (1) or Disable (0) the source.MAV_BOOL
4 (Estimator Instance)Estimator instance (0-based, for systems with multiple estimators).min: 0 inc: 1
5Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
6Reserved. Default: INT32_MAX (COMMAND_INT/MISSION_ITEM_INT) or NaN (COMMAND_LONG). Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
7Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).