Post · 70 min read· pp. 24–77

Dialect: ArduPilotMega

WARNING

ardupilotmega.xml contains the documentation for this dialect as used by the ArduPilot flight stack. The documentation here may not be a precise match if, for example, changes have not been pushed by the owner.

These messages define the ArduPilot specific dialect.

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

INFO

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

Protocol dialect: 2

Summary

TypeDefinedIncluded
Messages73253
Enums45175
Commands29172

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

Messages

SENSOR_OFFSETS (150) — [DEP]

DEPRECATED: Replaced By MAG_CAL_REPORT, Accel Parameters, and Gyro Parameters (2022-02)

Offsets and calibrations values for hardware sensors. This makes it easier to debug the calibration process.

Field NameTypeUnitsDescription
mag_ofs_xint16_tMagnetometer X offset.
mag_ofs_yint16_tMagnetometer Y offset.
mag_ofs_zint16_tMagnetometer Z offset.
mag_declinationfloatradMagnetic declination.
raw_pressint32_tRaw pressure from barometer.
raw_tempint32_tRaw temperature from barometer.
gyro_cal_xfloatGyro X calibration.
gyro_cal_yfloatGyro Y calibration.
gyro_cal_zfloatGyro Z calibration.
accel_cal_xfloatAccel X calibration.
accel_cal_yfloatAccel Y calibration.
accel_cal_zfloatAccel Z calibration.

SET_MAG_OFFSETS (151) — [DEP]

DEPRECATED: Replaced By MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS (2014-07)

Set the magnetometer offsets

Field NameTypeDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
mag_ofs_xint16_tMagnetometer X offset.
mag_ofs_yint16_tMagnetometer Y offset.
mag_ofs_zint16_tMagnetometer Z offset.

MEMINFO (152)

State of autopilot RAM.

Field NameTypeUnitsDescription
brkvaluint16_tHeap top.
freememuint16_tbytesFree memory.
freemem32 ++uint32_tbytesFree memory (32 bit).

AP_ADC (153)

Raw ADC output.

Field NameTypeDescription
adc1uint16_tADC output 1.
adc2uint16_tADC output 2.
adc3uint16_tADC output 3.
adc4uint16_tADC output 4.
adc5uint16_tADC output 5.
adc6uint16_tADC output 6.

DIGICAM_CONFIGURE (154)

Configure on-board Camera Control System.

Field NameTypeUnitsDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
modeuint8_tMode enumeration from 1 to N //P, TV, AV, M, etc. (0 means ignore).
shutter_speeduint16_tDivisor number //e.g. 1000 means 1/1000 (0 means ignore).
apertureuint8_tF stop number x 10 //e.g. 28 means 2.8 (0 means ignore).
isouint8_tISO enumeration from 1 to N //e.g. 80, 100, 200, Etc (0 means ignore).
exposure_typeuint8_tExposure type enumeration from 1 to N (0 means ignore).
command_iduint8_tCommand Identity (incremental loop: 0 to 255). //A command sent multiple times will be executed or pooled just once.
engine_cut_offuint8_tdsMain engine cut-off time before camera trigger (0 means no cut-off).
extra_paramuint8_tExtra parameters enumeration (0 means ignore).
extra_valuefloatCorrespondent value to given extra_param.

DIGICAM_CONTROL (155)

Control on-board Camera Control System to take shots.

Field NameTypeDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
sessionuint8_t0: stop, 1: start or keep it up //Session control e.g. show/hide lens.
zoom_posuint8_t1 to N //Zoom's absolute position (0 means ignore).
zoom_stepint8_t-100 to 100 //Zooming step value to offset zoom from the current position.
focus_lockuint8_t0: unlock focus or keep unlocked, 1: lock focus or keep locked, 3: re-lock focus.
shotuint8_t0: ignore, 1: shot or start filming.
command_iduint8_tCommand Identity (incremental loop: 0 to 255)//A command sent multiple times will be executed or pooled just once.
extra_paramuint8_tExtra parameters enumeration (0 means ignore).
extra_valuefloatCorrespondent value to given extra_param.

MOUNT_CONFIGURE (156)

Message to configure a camera mount, directional antenna, etc.

Field NameTypeValuesDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
mount_modeuint8_tMAV_MOUNT_MODEMount operating mode.
stab_rolluint8_t(1 = yes, 0 = no).
stab_pitchuint8_t(1 = yes, 0 = no).
stab_yawuint8_t(1 = yes, 0 = no).

MOUNT_CONTROL (157)

Message to control a camera mount, directional antenna, etc.

Field NameTypeDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
input_aint32_tPitch (centi-degrees) or lat (degE7), depending on mount mode.
input_bint32_tRoll (centi-degrees) or lon (degE7) depending on mount mode.
input_cint32_tYaw (centi-degrees) or alt (cm) depending on mount mode.
save_positionuint8_tIf "1" it will save current trimmed position on EEPROM (just valid for NEUTRAL and LANDING).

MOUNT_STATUS (158)

Message with some status from autopilot to GCS about camera or antenna mount.

Field NameTypeUnitsValuesDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
pointing_aint32_tcdegPitch.
pointing_bint32_tcdegRoll.
pointing_cint32_tcdegYaw.
mount_mode ++uint8_tMAV_MOUNT_MODEMount operating mode.

FENCE_POINT (160)

A fence point. Used to set a point when from GCS -> MAV. Also used to return a point from MAV -> GCS.

Field NameTypeUnitsDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
idxuint8_tPoint index (first point is 1, 0 is for return point).
countuint8_tTotal number of points (for sanity checking).
latfloatdegLatitude of point.
lngfloatdegLongitude of point.

FENCE_FETCH_POINT (161)

Request a current fence point from MAV.

Field NameTypeDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
idxuint8_tPoint index (first point is 1, 0 is for return point).

AHRS (163)

Status of DCM attitude estimator.

Field NameTypeUnitsDescription
omegaIxfloatrad/sX gyro drift estimate.
omegaIyfloatrad/sY gyro drift estimate.
omegaIzfloatrad/sZ gyro drift estimate.
accel_weightfloatAverage accel_weight.
renorm_valfloatAverage renormalisation value.
error_rpfloatAverage error_roll_pitch value.
error_yawfloatAverage error_yaw value.

SIMSTATE (164)

Status of simulation environment, if used.

Field NameTypeUnitsDescription
rollfloatradRoll angle.
pitchfloatradPitch angle.
yawfloatradYaw angle.
xaccfloatm/s/sX acceleration.
yaccfloatm/s/sY acceleration.
zaccfloatm/s/sZ acceleration.
xgyrofloatrad/sAngular speed around X axis.
ygyrofloatrad/sAngular speed around Y axis.
zgyrofloatrad/sAngular speed around Z axis.
latint32_tdegE7Latitude.
lngint32_tdegE7Longitude.

HWSTATUS (165) — [DEP]

DEPRECATED: Replaced By POWER_STATUS (2022-09) — POWER_STATUS+SYS_STATUS form a superset of the fields in this message.)

Status of key hardware.

Field NameTypeUnitsDescription
Vccuint16_tmVBoard voltage.
I2Cerruint8_tI2C error count.

RADIO (166) — [SUP]

SUPERSEDED: Replaced By RADIO_STATUS (2013-06)

Status generated by radio.

Field NameTypeUnitsDescription
rssiuint8_tLocal signal strength.
remrssiuint8_tRemote signal strength.
txbufuint8_t%Remaining free transmitter buffer space.
noiseuint8_tBackground noise level.
remnoiseuint8_tRemote background noise level.
rxerrorsuint16_tReceive errors.
fixeduint16_tCount of error corrected packets.

LIMITS_STATUS (167)

Status of AP_Limits. Sent in extended status stream when AP_Limits is enabled.

Field NameTypeUnitsValuesDescription
limits_stateuint8_tLIMITS_STATEState of AP_Limits.
last_triggeruint32_tmsTime (since boot) of last breach.
last_actionuint32_tmsTime (since boot) of last recovery action.
last_recoveryuint32_tmsTime (since boot) of last successful recovery.
last_clearuint32_tmsTime (since boot) of last all-clear.
breach_countuint16_tNumber of fence breaches.
mods_enableduint8_tLIMIT_MODULEAP_Limit_Module bitfield of enabled modules.
mods_requireduint8_tLIMIT_MODULEAP_Limit_Module bitfield of required modules.
mods_triggereduint8_tLIMIT_MODULEAP_Limit_Module bitfield of triggered modules.

WIND (168)

Wind estimation.

Field NameTypeUnitsDescription
directionfloatdegWind direction (that wind is coming from).
speedfloatm/sWind speed in ground plane.
speed_zfloatm/sVertical wind speed.

DATA16 (169)

Data packet, size 16.

Field NameTypeUnitsDescription
typeuint8_tData type.
lenuint8_tbytesData length.
datauint8_t[16]Raw data.

DATA32 (170)

Data packet, size 32.

Field NameTypeUnitsDescription
typeuint8_tData type.
lenuint8_tbytesData length.
datauint8_t[32]Raw data.

DATA64 (171)

Data packet, size 64.

Field NameTypeUnitsDescription
typeuint8_tData type.
lenuint8_tbytesData length.
datauint8_t[64]Raw data.

DATA96 (172)

Data packet, size 96.

Field NameTypeUnitsDescription
typeuint8_tData type.
lenuint8_tbytesData length.
datauint8_t[96]Raw data.

RANGEFINDER (173)

Rangefinder reporting.

Field NameTypeUnitsDescription
distancefloatmDistance.
voltagefloatVRaw voltage if available, zero otherwise.

AIRSPEED_AUTOCAL (174)

Airspeed auto-calibration.

Field NameTypeUnitsDescription
vxfloatm/sGPS velocity north.
vyfloatm/sGPS velocity east.
vzfloatm/sGPS velocity down.
diff_pressurefloatPaDifferential pressure.
EAS2TASfloatEstimated to true airspeed ratio.
ratiofloatAirspeed ratio.
state_xfloatEKF state x.
state_yfloatEKF state y.
state_zfloatEKF state z.
PaxfloatEKF Pax.
PbyfloatEKF Pby.
PczfloatEKF Pcz.

RALLY_POINT (175)

A rally point. Used to set a point when from GCS -> MAV. Also used to return a point from MAV -> GCS.

Field NameTypeUnitsValuesDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
idxuint8_tPoint index (first point is 0).
countuint8_tTotal number of points (for sanity checking).
latint32_tdegE7Latitude of point.
lngint32_tdegE7Longitude of point.
altint16_tmTransit / loiter altitude relative to home.
break_altint16_tmBreak altitude relative to home.
land_diruint16_tcdegHeading to aim for when landing.
flagsuint8_tRALLY_FLAGSConfiguration flags.

RALLY_FETCH_POINT (176)

Request a current rally point from MAV. MAV should respond with a RALLY_POINT message. MAV should not respond if the request is invalid.

Field NameTypeDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
idxuint8_tPoint index (first point is 0).

COMPASSMOT_STATUS (177)

Status of compassmot calibration.

Field NameTypeUnitsDescription
throttleuint16_td%Throttle.
currentfloatACurrent.
interferenceuint16_t%Interference.
CompensationXfloatMotor Compensation X.
CompensationYfloatMotor Compensation Y.
CompensationZfloatMotor Compensation Z.

AHRS2 (178)

Status of secondary AHRS filter if available.

Field NameTypeUnitsDescription
rollfloatradRoll angle.
pitchfloatradPitch angle.
yawfloatradYaw angle.
altitudefloatmAltitude (MSL).
latint32_tdegE7Latitude.
lngint32_tdegE7Longitude.

CAMERA_STATUS (179)

Camera Event.

Field NameTypeUnitsValuesDescription
time_usecuint64_tusImage timestamp (since UNIX epoch, according to camera clock).
target_systemuint8_tSystem ID.
cam_idxuint8_tCamera ID.
img_idxuint16_tImage index.
event_iduint8_tCAMERA_STATUS_TYPESEvent type.
p1floatParameter 1 (meaning depends on event_id, see CAMERA_STATUS_TYPES enum).
p2floatParameter 2 (meaning depends on event_id, see CAMERA_STATUS_TYPES enum).
p3floatParameter 3 (meaning depends on event_id, see CAMERA_STATUS_TYPES enum).
p4floatParameter 4 (meaning depends on event_id, see CAMERA_STATUS_TYPES enum).

CAMERA_FEEDBACK (180)

Camera Capture Feedback.

Field NameTypeUnitsValuesDescription
time_usecuint64_tusImage timestamp (since UNIX epoch), as passed in by CAMERA_STATUS message (or autopilot if no CCB).
target_systemuint8_tSystem ID.
cam_idxuint8_tCamera ID.
img_idxuint16_tImage index.
latint32_tdegE7Latitude.
lngint32_tdegE7Longitude.
alt_mslfloatmAltitude (MSL).
alt_relfloatmAltitude (Relative to HOME location).
rollfloatdegCamera Roll angle (earth frame, +-180).
pitchfloatdegCamera Pitch angle (earth frame, +-180).
yawfloatdegCamera Yaw (earth frame, 0-360, true).
foc_lenfloatmmFocal Length.
flagsuint8_tCAMERA_FEEDBACK_FLAGSFeedback flags.
completed_captures ++uint16_tCompleted image captures.

BATTERY2 (181) — [DEP]

DEPRECATED: Replaced By BATTERY_STATUS (2017-04)

2nd Battery status

Field NameTypeUnitsDescription
voltageuint16_tmVVoltage.
current_batteryint16_tcABattery current, -1: autopilot does not measure the current.

AHRS3 (182)

Status of third AHRS filter if available. This is for ANU research group (Ali and Sean).

Field NameTypeUnitsDescription
rollfloatradRoll angle.
pitchfloatradPitch angle.
yawfloatradYaw angle.
altitudefloatmAltitude (MSL).
latint32_tdegE7Latitude.
lngint32_tdegE7Longitude.
v1floatTest variable1.
v2floatTest variable2.
v3floatTest variable3.
v4floatTest variable4.

AUTOPILOT_VERSION_REQUEST (183)

Request the autopilot version from the system/component.

Field NameTypeDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.

REMOTE_LOG_DATA_BLOCK (184)

Send a block of log data to remote location.

Field NameTypeValuesDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
seqnouint32_tMAV_REMOTE_LOG_DATA_BLOCK_COMMANDSLog data block sequence number.
datauint8_t[200]Log data block.

REMOTE_LOG_BLOCK_STATUS (185)

Send Status of each log block that autopilot board might have sent.

Field NameTypeValuesDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
seqnouint32_tLog data block sequence number.
statusuint8_tMAV_REMOTE_LOG_DATA_BLOCK_STATUSESLog data block status.

LED_CONTROL (186)

Control vehicle LEDs.

Field NameTypeDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
instanceuint8_tInstance (LED instance to control or 255 for all LEDs).
patternuint8_tPattern (see LED_PATTERN_ENUM).
custom_lenuint8_tCustom Byte Length.
custom_bytesuint8_t[24]Custom Bytes.

MAG_CAL_PROGRESS (191)

Reports progress of compass calibration.

Field NameTypeUnitsValuesDescription
compass_iduint8_tCompass being calibrated. [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
cal_maskuint8_tBitmask of compasses being calibrated.
cal_statusuint8_tMAG_CAL_STATUSCalibration Status.
attemptuint8_tAttempt number.
completion_pctuint8_t%Completion percentage.
completion_maskuint8_t[10]Bitmask of sphere sections (see http://en.wikipedia.org/wiki/Geodesic_grid).
direction_xfloatBody frame direction vector for display.
direction_yfloatBody frame direction vector for display.
direction_zfloatBody frame direction vector for display.

EKF_STATUS_REPORT (193)

EKF Status message including flags and variances.

Field NameTypeValuesDescription
flagsuint16_tEKF_STATUS_FLAGSFlags.
velocity_variancefloatVelocity variance.
pos_horiz_variancefloatHorizontal Position variance.
pos_vert_variancefloatVertical Position variance.
compass_variancefloatCompass variance.
terrain_alt_variancefloatTerrain Altitude variance.
airspeed_variance ++floatAirspeed variance.

PID_TUNING (194)

PID tuning information.

Field NameTypeValuesDescription
axisuint8_tPID_TUNING_AXISAxis. [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
desiredfloatDesired rate.
achievedfloatAchieved rate.
FFfloatFF component.
PfloatP component.
IfloatI component.
DfloatD component.
SRate ++floatSlew rate.
PDmod ++floatP/D oscillation modifier.

DEEPSTALL (195)

Deepstall path planning.

Field NameTypeUnitsValuesDescription
landing_latint32_tdegE7Landing latitude.
landing_lonint32_tdegE7Landing longitude.
path_latint32_tdegE7Final heading start point, latitude.
path_lonint32_tdegE7Final heading start point, longitude.
arc_entry_latint32_tdegE7Arc entry point, latitude.
arc_entry_lonint32_tdegE7Arc entry point, longitude.
altitudefloatmAltitude.
expected_travel_distancefloatmDistance the aircraft expects to travel during the deepstall.
cross_track_errorfloatmDeepstall cross track error (only valid when in DEEPSTALL_STAGE_LAND).
stageuint8_tDEEPSTALL_STAGEDeepstall stage.

GIMBAL_REPORT (200)

3 axis gimbal measurements.

Field NameTypeUnitsDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
delta_timefloatsTime since last update.
delta_angle_xfloatradDelta angle X.
delta_angle_yfloatradDelta angle Y.
delta_angle_zfloatradDelta angle X.
delta_velocity_xfloatm/sDelta velocity X.
delta_velocity_yfloatm/sDelta velocity Y.
delta_velocity_zfloatm/sDelta velocity Z.
joint_rollfloatradJoint ROLL.
joint_elfloatradJoint EL.
joint_azfloatradJoint AZ.

GIMBAL_CONTROL (201)

Control message for rate gimbal.

Field NameTypeUnitsDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
demanded_rate_xfloatrad/sDemanded angular rate X.
demanded_rate_yfloatrad/sDemanded angular rate Y.
demanded_rate_zfloatrad/sDemanded angular rate Z.

GIMBAL_TORQUE_CMD_REPORT (214)

100 Hz gimbal torque command telemetry.

Field NameTypeDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
rl_torque_cmdint16_tRoll Torque Command.
el_torque_cmdint16_tElevation Torque Command.
az_torque_cmdint16_tAzimuth Torque Command.

GOPRO_HEARTBEAT (215)

Heartbeat from a HeroBus attached GoPro.

Field NameTypeValuesDescription
statusuint8_tGOPRO_HEARTBEAT_STATUSStatus.
capture_modeuint8_tGOPRO_CAPTURE_MODECurrent capture mode.
flagsuint8_tGOPRO_HEARTBEAT_FLAGSAdditional status bits.

GOPRO_GET_REQUEST (216)

Request a GOPRO_COMMAND response from the GoPro.

Field NameTypeValuesDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
cmd_iduint8_tGOPRO_COMMANDCommand ID.

GOPRO_GET_RESPONSE (217)

Response from a GOPRO_COMMAND get request.

Field NameTypeValuesDescription
cmd_iduint8_tGOPRO_COMMANDCommand ID.
statusuint8_tGOPRO_REQUEST_STATUSStatus.
valueuint8_t[4]Value.

GOPRO_SET_REQUEST (218)

Request to set a GOPRO_COMMAND with a desired.

Field NameTypeValuesDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
cmd_iduint8_tGOPRO_COMMANDCommand ID.
valueuint8_t[4]Value.

GOPRO_SET_RESPONSE (219)

Response from a GOPRO_COMMAND set request.

Field NameTypeValuesDescription
cmd_iduint8_tGOPRO_COMMANDCommand ID.
statusuint8_tGOPRO_REQUEST_STATUSStatus.

RPM (226)

RPM sensor output.

Field NameTypeDescription
rpm1floatRPM Sensor1.
rpm2floatRPM Sensor2.

DEVICE_OP_READ (11000)

Read registers for a device.

Field NameTypeValuesDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
request_iduint32_tRequest ID - copied to reply.
bustypeuint8_tDEVICE_OP_BUSTYPEThe bus type.
busuint8_tBus number.
addressuint8_tBus address.
busnamechar[40]Name of device on bus (for SPI).
regstartuint8_tFirst register to read.
countuint8_tCount of registers to read.
bank ++uint8_tBank number.

DEVICE_OP_READ_REPLY (11001)

Read registers reply.

Field NameTypeDescription
request_iduint32_tRequest ID - copied from request.
resultuint8_t0 for success, anything else is failure code.
regstartuint8_tStarting register.
countuint8_tCount of bytes read.
datauint8_t[128]Reply data.
bank ++uint8_tBank number.

DEVICE_OP_WRITE (11002)

Write registers for a device.

Field NameTypeValuesDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
request_iduint32_tRequest ID - copied to reply.
bustypeuint8_tDEVICE_OP_BUSTYPEThe bus type.
busuint8_tBus number.
addressuint8_tBus address.
busnamechar[40]Name of device on bus (for SPI).
regstartuint8_tFirst register to write.
countuint8_tCount of registers to write.
datauint8_t[128]Write data.
bank ++uint8_tBank number.

DEVICE_OP_WRITE_REPLY (11003)

Write registers reply.

Field NameTypeDescription
request_iduint32_tRequest ID - copied from request.
resultuint8_t0 for success, anything else is failure code.

SECURE_COMMAND (11004)

Send a secure command. Data should be signed with a private key corresponding with a public key known to the recipient. Signature should be over the concatenation of the sequence number (little-endian format), the operation (little-endian format) the data and the session key. For SECURE_COMMAND_GET_SESSION_KEY the session key should be zero length. The data array consists of the data followed by the signature. The sum of the data_length and the sig_length cannot be more than 220. The format of the data is command specific.

Field NameTypeValuesDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
sequenceuint32_tSequence ID for tagging reply.
operationuint32_tSECURE_COMMAND_OPOperation being requested.
data_lengthuint8_tData length.
sig_lengthuint8_tSignature length.
datauint8_t[220]Signed data.

SECURE_COMMAND_REPLY (11005)

Reply from secure command.

Field NameTypeValuesDescription
sequenceuint32_tSequence ID from request.
operationuint32_tSECURE_COMMAND_OPOperation that was requested.
resultuint8_tMAV_RESULTResult of command.
data_lengthuint8_tData length.
datauint8_t[220]Reply data.

ADAP_TUNING (11010)

Adaptive Controller tuning information.

Field NameTypeUnitsValuesDescription
axisuint8_tPID_TUNING_AXISAxis. [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
desiredfloatdeg/sDesired rate.
achievedfloatdeg/sAchieved rate.
errorfloatError between model and vehicle.
thetafloatTheta estimated state predictor.
omegafloatOmega estimated state predictor.
sigmafloatSigma estimated state predictor.
theta_dotfloatTheta derivative.
omega_dotfloatOmega derivative.
sigma_dotfloatSigma derivative.
ffloatProjection operator value.
f_dotfloatProjection operator derivative.
ufloatu adaptive controlled output command.

VISION_POSITION_DELTA (11011)

Camera vision based attitude and position deltas.

Field NameTypeUnitsDescription
time_usecuint64_tusTimestamp (synced to UNIX time or since system boot).
time_delta_usecuint64_tusTime since the last reported camera frame.
angle_deltafloat[3]radDefines a rotation vector [roll, pitch, yaw] to the current MAV_FRAME_BODY_FRD from the previous MAV_FRAME_BODY_FRD.
position_deltafloat[3]mChange in position to the current MAV_FRAME_BODY_FRD from the previous FRAME_BODY_FRD rotated to the current MAV_FRAME_BODY_FRD.
confidencefloat%Normalised confidence value from 0 to 100.

AOA_SSA (11020)

Angle of Attack and Side Slip Angle.

Field NameTypeUnitsDescription
time_usecuint64_tusTimestamp (since boot or Unix epoch).
AOAfloatdegAngle of Attack.
SSAfloatdegSide Slip Angle.

ESC_TELEMETRY_1_TO_4 (11030)

ESC Telemetry Data for ESCs 1 to 4, matching data sent by BLHeli ESCs.

Field NameTypeUnitsDescription
temperatureuint8_t[4]degCTemperature.
voltageuint16_t[4]cVVoltage.
currentuint16_t[4]cACurrent.
totalcurrentuint16_t[4]mAhTotal current.
rpmuint16_t[4]rpmRPM (eRPM).
countuint16_t[4]count of telemetry packets received (wraps at 65535).

ESC_TELEMETRY_5_TO_8 (11031)

ESC Telemetry Data for ESCs 5 to 8, matching data sent by BLHeli ESCs.

Field NameTypeUnitsDescription
temperatureuint8_t[4]degCTemperature.
voltageuint16_t[4]cVVoltage.
currentuint16_t[4]cACurrent.
totalcurrentuint16_t[4]mAhTotal current.
rpmuint16_t[4]rpmRPM (eRPM).
countuint16_t[4]count of telemetry packets received (wraps at 65535).

ESC_TELEMETRY_9_TO_12 (11032)

ESC Telemetry Data for ESCs 9 to 12, matching data sent by BLHeli ESCs.

Field NameTypeUnitsDescription
temperatureuint8_t[4]degCTemperature.
voltageuint16_t[4]cVVoltage.
currentuint16_t[4]cACurrent.
totalcurrentuint16_t[4]mAhTotal current.
rpmuint16_t[4]rpmRPM (eRPM).
countuint16_t[4]count of telemetry packets received (wraps at 65535).

OSD_PARAM_CONFIG (11033)

Configure an OSD parameter slot.

Field NameTypeValuesDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
request_iduint32_tRequest ID - copied to reply.
osd_screenuint8_tOSD parameter screen index.
osd_indexuint8_tOSD parameter display index.
param_idchar[16]Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
config_typeuint8_tOSD_PARAM_CONFIG_TYPEConfig type.
min_valuefloatOSD parameter minimum value.
max_valuefloatOSD parameter maximum value.
incrementfloatOSD parameter increment.

OSD_PARAM_CONFIG_REPLY (11034)

Configure OSD parameter reply.

Field NameTypeValuesDescription
request_iduint32_tRequest ID - copied from request.
resultuint8_tOSD_PARAM_CONFIG_ERRORConfig error type.

OSD_PARAM_SHOW_CONFIG (11035)

Read a configured an OSD parameter slot.

Field NameTypeDescription
target_systemuint8_tSystem ID.
target_componentuint8_tComponent ID.
request_iduint32_tRequest ID - copied to reply.
osd_screenuint8_tOSD parameter screen index.
osd_indexuint8_tOSD parameter display index.

OSD_PARAM_SHOW_CONFIG_REPLY (11036)

Read configured OSD parameter reply.

Field NameTypeValuesDescription
request_iduint32_tRequest ID - copied from request.
resultuint8_tOSD_PARAM_CONFIG_ERRORConfig error type.
param_idchar[16]Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string
config_typeuint8_tOSD_PARAM_CONFIG_TYPEConfig type.
min_valuefloatOSD parameter minimum value.
max_valuefloatOSD parameter maximum value.
incrementfloatOSD parameter increment.

OBSTACLE_DISTANCE_3D (11037)

Obstacle located as a 3D vector.

Field NameTypeUnitsValuesDescription
time_boot_msuint32_tmsTimestamp (time since system boot).
sensor_typeuint8_tMAV_DISTANCE_SENSORClass id of the distance sensor type.
frameuint8_tMAV_FRAMECoordinate frame of reference.
obstacle_iduint16_tUnique ID given to each obstacle so that its movement can be tracked. Use UINT16_MAX if object ID is unknown or cannot be determined. [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
xfloatmX position of the obstacle.
yfloatmY position of the obstacle.
zfloatmZ position of the obstacle.
min_distancefloatmMinimum distance the sensor can measure.
max_distancefloatmMaximum distance the sensor can measure.

WATER_DEPTH (11038)

Water depth

Field NameTypeUnitsDescription
time_boot_msuint32_tmsTimestamp (time since system boot)
iduint8_tOnboard ID of the sensor [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
healthyuint8_tSensor data healthy (0=unhealthy, 1=healthy)
latint32_tdegE7Latitude
lngint32_tdegE7Longitude
altfloatmAltitude (MSL) of vehicle
rollfloatradRoll angle
pitchfloatradPitch angle
yawfloatradYaw angle
distancefloatmDistance (uncorrected)
temperaturefloatdegCWater temperature

MCU_STATUS (11039)

The MCU status, giving MCU temperature and voltage. The min and max voltages are to allow for detecting power supply instability.

Field NameTypeUnitsDescription
iduint8_tMCU instance [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
MCU_temperatureint16_tcdegCMCU Internal temperature
MCU_voltageuint16_tmVMCU voltage
MCU_voltage_minuint16_tmVMCU voltage minimum
MCU_voltage_maxuint16_tmVMCU voltage maximum

ESC_TELEMETRY_13_TO_16 (11040)

ESC Telemetry Data for ESCs 13 to 16, matching data sent by BLHeli ESCs.

Field NameTypeUnitsDescription
temperatureuint8_t[4]degCTemperature.
voltageuint16_t[4]cVVoltage.
currentuint16_t[4]cACurrent.
totalcurrentuint16_t[4]mAhTotal current.
rpmuint16_t[4]rpmRPM (eRPM).
countuint16_t[4]count of telemetry packets received (wraps at 65535).

ESC_TELEMETRY_17_TO_20 (11041)

ESC Telemetry Data for ESCs 17 to 20, matching data sent by BLHeli ESCs.

Field NameTypeUnitsDescription
temperatureuint8_t[4]degCTemperature.
voltageuint16_t[4]cVVoltage.
currentuint16_t[4]cACurrent.
totalcurrentuint16_t[4]mAhTotal current.
rpmuint16_t[4]rpmRPM (eRPM).
countuint16_t[4]count of telemetry packets received (wraps at 65535).

ESC_TELEMETRY_21_TO_24 (11042)

ESC Telemetry Data for ESCs 21 to 24, matching data sent by BLHeli ESCs.

Field NameTypeUnitsDescription
temperatureuint8_t[4]degCTemperature.
voltageuint16_t[4]cVVoltage.
currentuint16_t[4]cACurrent.
totalcurrentuint16_t[4]mAhTotal current.
rpmuint16_t[4]rpmRPM (eRPM).
countuint16_t[4]count of telemetry packets received (wraps at 65535).

ESC_TELEMETRY_25_TO_28 (11043)

ESC Telemetry Data for ESCs 25 to 28, matching data sent by BLHeli ESCs.

Field NameTypeUnitsDescription
temperatureuint8_t[4]degCTemperature.
voltageuint16_t[4]cVVoltage.
currentuint16_t[4]cACurrent.
totalcurrentuint16_t[4]mAhTotal current.
rpmuint16_t[4]rpmRPM (eRPM).
countuint16_t[4]count of telemetry packets received (wraps at 65535).

ESC_TELEMETRY_29_TO_32 (11044)

ESC Telemetry Data for ESCs 29 to 32, matching data sent by BLHeli ESCs.

Field NameTypeUnitsDescription
temperatureuint8_t[4]degCTemperature.
voltageuint16_t[4]cVVoltage.
currentuint16_t[4]cACurrent.
totalcurrentuint16_t[4]mAhTotal current.
rpmuint16_t[4]rpmRPM (eRPM).
countuint16_t[4]count of telemetry packets received (wraps at 65535).

NAMED_VALUE_STRING (11060)

Send a key-value pair as string. The use of this message is discouraged for normal packets, but a quite efficient way for testing new messages and getting experimental debug output.

Field NameTypeUnitsDescription
time_boot_msuint32_tmsTimestamp (time since system boot).
namechar[10]Name of the debug variable [Instance field]: Uniquely identifies a device/subcomponent within a single source/target MAVLink component.
valuechar[64]Value of the debug variable

Enumerated Types

ACCELCAL_VEHICLE_POS

SCRIPTING_CMD

ValueNameDescription
0SCRIPTING_CMD_REPL_STARTStart a REPL session.
1SCRIPTING_CMD_REPL_STOPEnd a REPL session.
2SCRIPTING_CMD_STOPStop execution of scripts.
3SCRIPTING_CMD_STOP_AND_RESTARTStop execution of scripts and restart.

SECURE_COMMAND_OP

ValueNameDescription
0SECURE_COMMAND_GET_SESSION_KEYGet an 8 byte session key which is used for remote secure updates which operate on flight controller data such as bootloader public keys. Return data will be 8 bytes on success. The session key remains valid until either the flight controller reboots or another SECURE_COMMAND_GET_SESSION_KEY is run.
1SECURE_COMMAND_GET_REMOTEID_SESSION_KEYGet an 8 byte session key which is used for remote secure updates which operate on RemoteID module data. Return data will be 8 bytes on success. The session key remains valid until either the remote ID module reboots or another SECURE_COMMAND_GET_REMOTEID_SESSION_KEY is run.
2SECURE_COMMAND_REMOVE_PUBLIC_KEYSRemove range of public keys from the bootloader. Command data consists of two bytes, first byte if index of first public key to remove. Second byte is the number of keys to remove. If all keys are removed then secure boot is disabled and insecure firmware can be loaded.
3SECURE_COMMAND_GET_PUBLIC_KEYSGet current public keys from the bootloader. Command data consists of two bytes, first byte is index of first public key to fetch, 2nd byte is number of keys to fetch. Total data needs to fit in data portion of reply (max 6 keys for 32 byte keys). Reply data has the index of the first key in the first byte, followed by the keys. Returned keys may be less than the number of keys requested if there are less keys installed than requested.
4SECURE_COMMAND_SET_PUBLIC_KEYSSet current public keys in the bootloader. Data consists of a one byte public key index followed by the public keys. With 32 byte keys this allows for up to 6 keys to be set in one request. Keys outside of the range that is being set will remain unchanged.
5SECURE_COMMAND_GET_REMOTEID_CONFIGGet config data for remote ID module. This command should be sent to the component ID of the flight controller which will forward it to the RemoteID module either over mavlink or DroneCAN. Data format is specific to the RemoteID implementation, see RemoteID firmware documentation for details.
6SECURE_COMMAND_SET_REMOTEID_CONFIGSet config data for remote ID module. This command should be sent to the component ID of the flight controller which will forward it to the RemoteID module either over mavlink or DroneCAN. Data format is specific to the RemoteID implementation, see RemoteID firmware documentation for details.
7SECURE_COMMAND_FLASH_BOOTLOADERFlash bootloader from local storage. Data is the filename to use for the bootloader. This is intended to be used with MAVFtp to upload a new bootloader to a microSD before flashing.

LIMITS_STATE

ValueNameDescription
0LIMITS_INITPre-initialization.
1LIMITS_DISABLEDDisabled.
2LIMITS_ENABLEDChecking limits.
3LIMITS_TRIGGEREDA limit has been breached.
4LIMITS_RECOVERINGTaking action e.g. Return/RTL.
5LIMITS_RECOVEREDWe're no longer in breach of a limit.

LIMIT_MODULE

(Bitmask)

ValueNameDescription
1LIMIT_GPSLOCKPre-initialization.
2LIMIT_GEOFENCEDisabled.
4LIMIT_ALTITUDEChecking limits.

RALLY_FLAGS

Flags in RALLY_POINT message.

ValueNameDescription
1FAVORABLE_WINDFlag set when requiring favorable winds for landing.
2LAND_IMMEDIATELYFlag set when plane is to immediately descend to break altitude and land without GCS intervention. Flag not set when plane is to loiter at Rally point until commanded to land.
4ALT_FRAME_VALIDTrue if the following altitude frame value is valid.
24ALT_FRAME2 bit value representing altitude frame. 0: absolute, 1: relative home, 2: relative origin, 3: relative terrain

CAMERA_STATUS_TYPES

ValueNameDescription
0CAMERA_STATUS_TYPE_HEARTBEATCamera heartbeat, announce camera component ID at 1Hz.
1CAMERA_STATUS_TYPE_TRIGGERCamera image triggered.
2CAMERA_STATUS_TYPE_DISCONNECTCamera connection lost.
3CAMERA_STATUS_TYPE_ERRORCamera unknown error.
4CAMERA_STATUS_TYPE_LOWBATTCamera battery low. Parameter p1 shows reported voltage.
5CAMERA_STATUS_TYPE_LOWSTORECamera storage low. Parameter p1 shows reported shots remaining.
6CAMERA_STATUS_TYPE_LOWSTOREVCamera storage low. Parameter p1 shows reported video minutes remaining.

CAMERA_FEEDBACK_FLAGS

ValueNameDescription
0CAMERA_FEEDBACK_PHOTOShooting photos, not video.
1CAMERA_FEEDBACK_VIDEOShooting video, not stills.
2CAMERA_FEEDBACK_BADEXPOSUREUnable to achieve requested exposure (e.g. shutter speed too low).
3CAMERA_FEEDBACK_CLOSEDLOOPClosed loop feedback from camera, we know for sure it has successfully taken a picture.
4CAMERA_FEEDBACK_OPENLOOPOpen loop camera, an image trigger has been requested but we can't know for sure it has successfully taken a picture.

MAV_MODE_GIMBAL

ValueNameDescription
0MAV_MODE_GIMBAL_UNINITIALIZEDGimbal is powered on but has not started initializing yet.
1MAV_MODE_GIMBAL_CALIBRATING_PITCHGimbal is currently running calibration on the pitch axis.
2MAV_MODE_GIMBAL_CALIBRATING_ROLLGimbal is currently running calibration on the roll axis.
3MAV_MODE_GIMBAL_CALIBRATING_YAWGimbal is currently running calibration on the yaw axis.
4MAV_MODE_GIMBAL_INITIALIZEDGimbal has finished calibrating and initializing, but is relaxed pending reception of first rate command from copter.
5MAV_MODE_GIMBAL_ACTIVEGimbal is actively stabilizing.
6MAV_MODE_GIMBAL_RATE_CMD_TIMEOUTGimbal is relaxed because it missed more than 10 expected rate command messages in a row. Gimbal will move back to active mode when it receives a new rate command.

GIMBAL_AXIS

ValueNameDescription
0GIMBAL_AXIS_YAWGimbal yaw axis.
1GIMBAL_AXIS_PITCHGimbal pitch axis.
2GIMBAL_AXIS_ROLLGimbal roll axis.

GIMBAL_AXIS_CALIBRATION_STATUS

ValueNameDescription
0GIMBAL_AXIS_CALIBRATION_STATUS_IN_PROGRESSAxis calibration is in progress.
1GIMBAL_AXIS_CALIBRATION_STATUS_SUCCEEDEDAxis calibration succeeded.
2GIMBAL_AXIS_CALIBRATION_STATUS_FAILEDAxis calibration failed.

GIMBAL_AXIS_CALIBRATION_REQUIRED

ValueNameDescription
0GIMBAL_AXIS_CALIBRATION_REQUIRED_UNKNOWNWhether or not this axis requires calibration is unknown at this time.
1GIMBAL_AXIS_CALIBRATION_REQUIRED_TRUEThis axis requires calibration.
2GIMBAL_AXIS_CALIBRATION_REQUIRED_FALSEThis axis does not require calibration.

GOPRO_HEARTBEAT_STATUS

ValueNameDescription
0GOPRO_HEARTBEAT_STATUS_DISCONNECTEDNo GoPro connected.
1GOPRO_HEARTBEAT_STATUS_INCOMPATIBLEThe detected GoPro is not HeroBus compatible.
2GOPRO_HEARTBEAT_STATUS_CONNECTEDA HeroBus compatible GoPro is connected.
3GOPRO_HEARTBEAT_STATUS_ERRORAn unrecoverable error was encountered with the connected GoPro, it may require a power cycle.

GOPRO_HEARTBEAT_FLAGS

(Bitmask)

ValueNameDescription
1GOPRO_FLAG_RECORDINGGoPro is currently recording.

GOPRO_REQUEST_STATUS

ValueNameDescription
0GOPRO_REQUEST_SUCCESSThe write message with ID indicated succeeded.
1GOPRO_REQUEST_FAILEDThe write message with ID indicated failed.

GOPRO_COMMAND

GOPRO_CAPTURE_MODE

ValueNameDescription
0GOPRO_CAPTURE_MODE_VIDEOVideo mode.
1GOPRO_CAPTURE_MODE_PHOTOPhoto mode.
2GOPRO_CAPTURE_MODE_BURSTBurst mode, Hero 3+ only.
3GOPRO_CAPTURE_MODE_TIME_LAPSETime lapse mode, Hero 3+ only.
4GOPRO_CAPTURE_MODE_MULTI_SHOTMulti shot mode, Hero 4 only.
5GOPRO_CAPTURE_MODE_PLAYBACKPlayback mode, Hero 4 only, silver only except when LCD or HDMI is connected to black.
6GOPRO_CAPTURE_MODE_SETUPPlayback mode, Hero 4 only.
255GOPRO_CAPTURE_MODE_UNKNOWNMode not yet known.

GOPRO_RESOLUTION

ValueNameDescription
0GOPRO_RESOLUTION_480p848 x 480 (480p).
1GOPRO_RESOLUTION_720p1280 x 720 (720p).
2GOPRO_RESOLUTION_960p1280 x 960 (960p).
3GOPRO_RESOLUTION_1080p1920 x 1080 (1080p).
4GOPRO_RESOLUTION_1440p1920 x 1440 (1440p).
5GOPRO_RESOLUTION_2_7k_17_92704 x 1440 (2.7k-17:9).
6GOPRO_RESOLUTION_2_7k_16_92704 x 1524 (2.7k-16:9).
7GOPRO_RESOLUTION_2_7k_4_32704 x 2028 (2.7k-4:3).
8GOPRO_RESOLUTION_4k_16_93840 x 2160 (4k-16:9).
9GOPRO_RESOLUTION_4k_17_94096 x 2160 (4k-17:9).
10GOPRO_RESOLUTION_720p_SUPERVIEW1280 x 720 (720p-SuperView).
11GOPRO_RESOLUTION_1080p_SUPERVIEW1920 x 1080 (1080p-SuperView).
12GOPRO_RESOLUTION_2_7k_SUPERVIEW2704 x 1520 (2.7k-SuperView).
13GOPRO_RESOLUTION_4k_SUPERVIEW3840 x 2160 (4k-SuperView).

GOPRO_FRAME_RATE

GOPRO_FIELD_OF_VIEW

ValueNameDescription
0GOPRO_FIELD_OF_VIEW_WIDE0x00: Wide.
1GOPRO_FIELD_OF_VIEW_MEDIUM0x01: Medium.
2GOPRO_FIELD_OF_VIEW_NARROW0x02: Narrow.

GOPRO_VIDEO_SETTINGS_FLAGS

(Bitmask)

ValueNameDescription
1GOPRO_VIDEO_SETTINGS_TV_MODE0=NTSC, 1=PAL.

GOPRO_PHOTO_RESOLUTION

GOPRO_PROTUNE_WHITE_BALANCE

GOPRO_PROTUNE_COLOUR

GOPRO_PROTUNE_GAIN

ValueNameDescription
0GOPRO_PROTUNE_GAIN_400ISO 400.
1GOPRO_PROTUNE_GAIN_800ISO 800 (Only Hero 4).
2GOPRO_PROTUNE_GAIN_1600ISO 1600.
3GOPRO_PROTUNE_GAIN_3200ISO 3200 (Only Hero 4).
4GOPRO_PROTUNE_GAIN_6400ISO 6400.

GOPRO_PROTUNE_SHARPNESS

ValueNameDescription
0GOPRO_PROTUNE_SHARPNESS_LOWLow Sharpness.
1GOPRO_PROTUNE_SHARPNESS_MEDIUMMedium Sharpness.
2GOPRO_PROTUNE_SHARPNESS_HIGHHigh Sharpness.

GOPRO_PROTUNE_EXPOSURE

GOPRO_CHARGING

ValueNameDescription
0GOPRO_CHARGING_DISABLEDCharging disabled.
1GOPRO_CHARGING_ENABLEDCharging enabled.

GOPRO_MODEL

ValueNameDescription
0GOPRO_MODEL_UNKNOWNUnknown gopro model.
1GOPRO_MODEL_HERO_3_PLUS_SILVERHero 3+ Silver (HeroBus not supported by GoPro).
2GOPRO_MODEL_HERO_3_PLUS_BLACKHero 3+ Black.
3GOPRO_MODEL_HERO_4_SILVERHero 4 Silver.
4GOPRO_MODEL_HERO_4_BLACKHero 4 Black.

GOPRO_BURST_RATE

ValueNameDescription
0GOPRO_BURST_RATE_3_IN_1_SECOND3 Shots / 1 Second.
1GOPRO_BURST_RATE_5_IN_1_SECOND5 Shots / 1 Second.
2GOPRO_BURST_RATE_10_IN_1_SECOND10 Shots / 1 Second.
3GOPRO_BURST_RATE_10_IN_2_SECOND10 Shots / 2 Second.
4GOPRO_BURST_RATE_10_IN_3_SECOND10 Shots / 3 Second (Hero 4 Only).
5GOPRO_BURST_RATE_30_IN_1_SECOND30 Shots / 1 Second.
6GOPRO_BURST_RATE_30_IN_2_SECOND30 Shots / 2 Second.
7GOPRO_BURST_RATE_30_IN_3_SECOND30 Shots / 3 Second.
8GOPRO_BURST_RATE_30_IN_6_SECOND30 Shots / 6 Second.

MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVEL

LED_CONTROL_PATTERN

ValueNameDescription
0LED_CONTROL_PATTERN_OFFLED patterns off (return control to regular vehicle control).
1LED_CONTROL_PATTERN_FIRMWAREUPDATELEDs show pattern during firmware update.
255LED_CONTROL_PATTERN_CUSTOMCustom Pattern using custom bytes fields.

EKF_STATUS_FLAGS

(Bitmask) Flags in EKF_STATUS message.

ValueNameDescription
1EKF_ATTITUDESet if EKF's attitude estimate is good.
2EKF_VELOCITY_HORIZSet if EKF's horizontal velocity estimate is good.
4EKF_VELOCITY_VERTSet if EKF's vertical velocity estimate is good.
8EKF_POS_HORIZ_RELSet if EKF's horizontal position (relative) estimate is good.
16EKF_POS_HORIZ_ABSSet if EKF's horizontal position (absolute) estimate is good.
32EKF_POS_VERT_ABSSet if EKF's vertical position (absolute) estimate is good.
64EKF_POS_VERT_AGLSet if EKF's vertical position (above ground) estimate is good.
128EKF_CONST_POS_MODEEKF is in constant position mode and does not know it's absolute or relative position.
256EKF_PRED_POS_HORIZ_RELSet if EKF's predicted horizontal position (relative) estimate is good.
512EKF_PRED_POS_HORIZ_ABSSet if EKF's predicted horizontal position (absolute) estimate is good.
1024EKF_UNINITIALIZEDSet if EKF has never been healthy.
32768EKF_GPS_GLITCHINGSet if EKF believes the GPS input data is faulty.

PID_TUNING_AXIS

ValueNameDescription
1PID_TUNING_ROLL
2PID_TUNING_PITCH
3PID_TUNING_YAW
4PID_TUNING_ACCZ
5PID_TUNING_STEER
6PID_TUNING_LANDING
7PID_TUNING_WHEEL_LEFTLeft wheel rate.
8PID_TUNING_WHEEL_RIGHTRight wheel rate.
9PID_TUNING_SAIL_HEELSailboat heel to mainsail.
10PID_TUNING_VEL_NORTHVelocity north.
11PID_TUNING_VEL_EASTVelocity east.
12PID_TUNING_VEL_DOWNVelocity down.
13PID_TUNING_POS_NORTHPosition north.
14PID_TUNING_POS_EASTPosition east.
15PID_TUNING_POS_DOWNPosition down.
16PID_TUNING_YAW_ANGLEYaw angle.

MAV_REMOTE_LOG_DATA_BLOCK_COMMANDS

Special ACK block numbers control activation of dataflash log streaming.

ValueNameDescription
2147483645MAV_REMOTE_LOG_DATA_BLOCK_STOPUAV to stop sending DataFlash blocks.
2147483646MAV_REMOTE_LOG_DATA_BLOCK_STARTUAV to start sending DataFlash blocks.

MAV_REMOTE_LOG_DATA_BLOCK_STATUSES

Possible remote log data block statuses.

ValueNameDescription
0MAV_REMOTE_LOG_DATA_BLOCK_NACKThis block has NOT been received.
1MAV_REMOTE_LOG_DATA_BLOCK_ACKThis block has been received.

DEVICE_OP_BUSTYPE

Bus types for device operations.

ValueNameDescription
0DEVICE_OP_BUSTYPE_I2CI2C Device operation.
1DEVICE_OP_BUSTYPE_SPISPI Device operation.

DEEPSTALL_STAGE

Deepstall flight stage.

ValueNameDescription
0DEEPSTALL_STAGE_FLY_TO_LANDINGFlying to the landing point.
1DEEPSTALL_STAGE_ESTIMATE_WINDBuilding an estimate of the wind.
2DEEPSTALL_STAGE_WAIT_FOR_BREAKOUTWaiting to breakout of the loiter to fly the approach.
3DEEPSTALL_STAGE_FLY_TO_ARCFlying to the first arc point to turn around to the landing point.
4DEEPSTALL_STAGE_ARCTurning around back to the deepstall landing point.
5DEEPSTALL_STAGE_APPROACHApproaching the landing point.
6DEEPSTALL_STAGE_LANDStalling and steering towards the land point.

PLANE_MODE

A mapping of plane flight modes for custom_mode field of heartbeat.

COPTER_MODE

A mapping of copter flight modes for custom_mode field of heartbeat.

SUB_MODE

A mapping of sub flight modes for custom_mode field of heartbeat.

ROVER_MODE

A mapping of rover flight modes for custom_mode field of heartbeat.

TRACKER_MODE

A mapping of antenna tracker flight modes for custom_mode field of heartbeat.

OSD_PARAM_CONFIG_TYPE

The type of parameter for the OSD parameter editor.

OSD_PARAM_CONFIG_ERROR

The error type for the OSD parameter editor.

Commands (MAV_CMD)

MAV_CMD_NAV_ALTITUDE_WAIT (83)

Mission command to wait for an altitude or downwards vertical speed. This is meant for high altitude balloon launches, allowing the aircraft to be idle until either an altitude is reached or a negative vertical speed is reached (indicating early balloon burst). The wiggle time is how often to wiggle the control surfaces to prevent them seizing up.

Param (Label)DescriptionUnits
1 (Altitude)Altitude.m
2 (Descent Speed)Descent speed.m/s
3 (Wiggle Time)How long to wiggle the control surfaces to prevent them seizing up.s
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_RESUME_REPEAT_DIST (215)

Set the distance to be repeated on mission resume

Param (Label)DescriptionUnits
1 (Distance)Distance.m
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_DO_SPRAYER (216)

Control attached liquid sprayer

Param (Label)DescriptionValues
1 (Sprayer Enable)0: disable sprayer. 1: enable sprayer.min: 0 max: 1 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_DO_SEND_SCRIPT_MESSAGE (217)

Pass instructions onto scripting, a script should be checking for a new command

Param (Label)DescriptionValues
1 (ID)uint16 ID value to be passed to scriptingmin: 0 max: 65535 inc: 1
2 (param 1)float value to be passed to scripting
3 (param 2)float value to be passed to scripting
4 (param 3)float value to be passed to scripting
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_AUX_FUNCTION (218)

Execute auxiliary function

Param (Label)DescriptionValues
1 (AuxiliaryFunction)Auxiliary Function.
2 (SwitchPosition)Switch Level.MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVEL
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_POWER_OFF_INITIATED (42000)

A system wide power-off event has been initiated.

Param (Label)Description
1Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
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_SOLO_BTN_FLY_CLICK (42001)

FLY button has been clicked.

Param (Label)Description
1Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
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_SOLO_BTN_FLY_HOLD (42002)

FLY button has been held for 1.5 seconds.

Param (Label)DescriptionUnits
1 (Takeoff Altitude)Takeoff altitude.m
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_SOLO_BTN_PAUSE_CLICK (42003)

PAUSE button has been clicked.

Param (Label)DescriptionValues
1 (Shot Mode)1 if Solo is in a shot mode, 0 otherwise.min: 0 max: 1 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_FIXED_MAG_CAL (42004)

Magnetometer calibration based on fixed position

in earth field given by inclination, declination and intensity.

Param (Label)DescriptionUnits
1 (Declination)Magnetic declination.deg
2 (Inclination)Magnetic inclination.deg
3 (Intensity)Magnetic intensity.mgauss
4 (Yaw)Yaw.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).
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_FIXED_MAG_CAL_FIELD (42005)

Magnetometer calibration based on fixed expected field values.

Param (Label)DescriptionUnits
1 (Field X)Field strength X.mgauss
2 (Field Y)Field strength Y.mgauss
3 (Field Z)Field strength Z.mgauss
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_SET_EKF_SOURCE_SET (42007)

Set EKF sensor source set.

Param (Label)DescriptionValues
1 (SourceSetId)Source Set Id.min: 1 max: 3 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_DO_START_MAG_CAL (42424)

Initiate a magnetometer calibration.

Param (Label)DescriptionValuesUnits
1 (Magnetometers Bitmask)Bitmask of magnetometers to calibrate. Use 0 to calibrate all sensors that can be started (sensors may not start if disabled, unhealthy, etc.). The command will NACK if calibration does not start for a sensor explicitly specified by the bitmask.min: 0 max: 255 inc: 1
2 (Retry on Failure)Automatically retry on failure (0=no retry, 1=retry).min: 0 max: 1 inc: 1
3 (Autosave)Save without user input (0=require input, 1=autosave).min: 0 max: 1 inc: 1
4 (Delay)Delay.s
5 (Autoreboot)Autoreboot (0=user reboot, 1=autoreboot).min: 0 max: 1 inc: 1
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_ACCEPT_MAG_CAL (42425)

Accept a magnetometer calibration.

Param (Label)DescriptionValues
1 (Magnetometers Bitmask)Bitmask of magnetometers that calibration is accepted (0 means all).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_DO_CANCEL_MAG_CAL (42426)

Cancel a running magnetometer calibration.

Param (Label)DescriptionValues
1 (Magnetometers Bitmask)Bitmask of magnetometers to cancel a running calibration (0 means all).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_SET_FACTORY_TEST_MODE (42427)

Command autopilot to get into factory test/diagnostic mode.

Param (Label)DescriptionValues
1 (Test Mode)0: activate test mode, 1: exit test mode.min: 0 max: 1 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_DO_SEND_BANNER (42428)

Reply with the version banner.

Param (Label)Description
1Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
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_ACCELCAL_VEHICLE_POS (42429)

Used when doing accelerometer calibration. When sent to the GCS tells it what position to put the vehicle in. When sent to the vehicle says what position the vehicle is in.

Param (Label)DescriptionValues
1 (Position)Position.ACCELCAL_VEHICLE_POS
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_GIMBAL_RESET (42501)

Causes the gimbal to reset and boot as if it was just powered on.

Param (Label)Description
1Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
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_GIMBAL_AXIS_CALIBRATION_STATUS (42502)

Reports progress and success or failure of gimbal axis calibration procedure.

Param (Label)DescriptionValuesUnits
1 (Axis)Gimbal axis we're reporting calibration progress for.GIMBAL_AXIS
2 (Progress)Current calibration progress for this axis.min: 0 max: 100%
3 (Status)Status of the calibration.GIMBAL_AXIS_CALIBRATION_STATUS
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_GIMBAL_REQUEST_AXIS_CALIBRATION (42503)

Starts commutation calibration on the gimbal.

Param (Label)Description
1Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
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_GIMBAL_FULL_RESET (42505)

Erases gimbal application and parameters.

Param (Label)Description
1Magic number.
2Magic number.
3Magic number.
4Magic number.
5Magic number.
6Magic number.
7Magic number.

MAV_CMD_FLASH_BOOTLOADER (42650)

Update the bootloader

Param (Label)DescriptionValues
1Reserved. Default: NaN. Note: Implementations that currently accept 0 as the sentinel values are planning to migrate (check their documentation on the state).
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).
5 (Magic Number)Magic number - set to 290876 to actually flashinc: 1
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_BATTERY_RESET (42651)

Reset battery capacity for batteries that accumulate consumed battery via integration.

Param (Label)DescriptionValues
1 (battery mask)Bitmask of batteries to reset. Least significant bit is for the first battery.
2 (percentage)Battery percentage remaining to set.min: 0 max: 100 inc: 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_DEBUG_TRAP (42700)

Issue a trap signal to the autopilot process, presumably to enter the debugger.

Param (Label)Description
1Magic number - set to 32451 to actually trap.
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_SCRIPTING (42701)

Control onboard scripting.

Param (Label)DescriptionValues
1Scripting command to executeSCRIPTING_CMD
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_NAV_SCRIPT_TIME (42702)

Scripting command as NAV command with wait for completion.

Param (Label)DescriptionUnits
1 (command)integer command number (0 to 255)
2 (timeout)timeout for operation in seconds. Zero means no timeout (0 to 255)s
3 (arg1)argument1.
4 (arg2)argument2.
5 (arg3)argument3.
6 (arg4)argument4.
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_NAV_ATTITUDE_TIME (42703)

Maintain an attitude for a specified time.

Param (Label)DescriptionUnits
1 (time)Time to maintain specified attitude and climb rates
2 (roll)Roll angle in degrees (positive is lean right, negative is lean left)deg
3 (pitch)Pitch angle in degrees (positive is lean back, negative is lean forward)deg
4 (yaw)Yaw angledeg
5 (climb_rate)Climb ratem/s
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_SET_HAGL (43005)

Provide a value for height above ground level. This can be used for things like fixed wing and VTOL landing.

Param (Label)DescriptionUnits
1 (hagl)Height above ground level.m
2 (accuracy)estimated one standard deviation accuracy of the measurement. Set to NaN if not known.m
3 (timeout)Timeout for this data. The flight controller should only consider this data valid within the timeout window.s
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).