Post · 6 min read· pp. 440–444

Dialect: MAVLINK Standard Message Set (standard.xml)

The MAVLink standard message set contains standard definitions that are managed by the MAVLink project. The definitions are those that are expected to be implemented in all flight stacks/ground stations AND are likely to be implemented in a compatible way. The original definitions are defined in standard.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

Summary

TypeDefinedIncluded
Messages21
Enums36
Commands00

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

Messages

GLOBAL_POSITION_INT (33)

The filtered global position (e.g. fused GPS and accelerometers). The position is in GPS-frame (right-handed, Z-up). It is designed as scaled integer message since the resolution of float is not sufficient.

Field NameTypeUnitsDescription
time_boot_msuint32_tmsTimestamp (time since system boot).
latint32_tdegE7Latitude, expressed
lonint32_tdegE7Longitude, expressed
altint32_tmmAltitude (MSL). Note that virtually all GPS modules provide both WGS84 and MSL.
relative_altint32_tmmAltitude above home
vxint16_tcm/sGround X Speed (Latitude, positive north)
vyint16_tcm/sGround Y Speed (Longitude, positive east)
vzint16_tcm/sGround Z Speed (Altitude, positive down)
hdguint16_tcdegVehicle heading (yaw angle), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX

AUTOPILOT_VERSION (148)

Version and capability of autopilot software. This should be emitted in response to a request with MAV_CMD_REQUEST_MESSAGE.

Field NameTypeValuesDescription
capabilitiesuint64_tMAV_PROTOCOL_CAPABILITYBitmap of capabilities
flight_sw_versionuint32_tFirmware version number. The field must be encoded as 4 bytes, where each byte (shown from MSB to LSB) is part of a semantic version: (major) (minor) (patch) (FIRMWARE_VERSION_TYPE).
middleware_sw_versionuint32_tMiddleware version number
os_sw_versionuint32_tOperating system version number
board_versionuint32_tHW / board version (last 8 bits should be silicon ID, if any). The first 16 bits of this field specify a board type from an enumeration stored at https://github.com/PX4/PX4-Bootloader/blob/master/board_types.txt and with extensive additions at https://github.com/ArduPilot/ardupilot/blob/master/Tools/AP_Bootloader/board_types.txt
flight_custom_versionuint8_t[8]Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases.
middleware_custom_versionuint8_t[8]Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases.
os_custom_versionuint8_t[8]Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier, but should allow to identify the commit using the main version number even for very large code bases.
vendor_iduint16_tID of the board vendor
product_iduint16_tID of the product
uiduint64_tUID if provided by hardware (see uid2)
uid2 ++uint8_t[18]UID if provided by hardware (supersedes the uid field. If this is non-zero, use this field, otherwise use uid)

Enumerated Types

MAV_BOOL

Enum used to indicate true or false (also: success or failure, enabled or disabled, active or inactive).

ValueNameDescription
0MAV_BOOL_FALSEFalse.
1MAV_BOOL_TRUETrue.

MAV_PROTOCOL_CAPABILITY

(Bitmask) Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability.

ValueNameDescription
1MAV_PROTOCOL_CAPABILITY_MISSION_FLOATAutopilot supports the MISSION_ITEM float message type. Note that MISSION_ITEM is deprecated, and autopilots should use MISSION_ITEM_INT instead.
2MAV_PROTOCOL_CAPABILITY_PARAM_FLOATAutopilot supports the new param float message type. DEPRECATED: Replaced By MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST (2022-03)
4MAV_PROTOCOL_CAPABILITY_MISSION_INTAutopilot supports MISSION_ITEM_INT scaled integer message type. Note that this flag must always be set if missions are supported, because missions must always use MISSION_ITEM_INT (rather than MISSION_ITEM, which is deprecated).
8MAV_PROTOCOL_CAPABILITY_COMMAND_INTAutopilot supports COMMAND_INT scaled integer message type.
16MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISEParameter protocol uses byte-wise encoding of parameter values into param_value (float) fields: https://mavlink.io/en/services/parameter.html#parameter-encoding. Note that either this flag or MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST should be set if the parameter protocol is supported.
32MAV_PROTOCOL_CAPABILITY_FTPAutopilot supports the File Transfer Protocol v1: https://mavlink.io/en/services/ftp.html.
64MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGETAutopilot supports the SET_ATTITUDE_TARGET message (for commanding attitude from an offboard controller).
128MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NEDAutopilot supports the SET_POSITION_TARGET_LOCAL_NED message (for commanding position and velocity targets in local NED frame).
256MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INTAutopilot supports the SET_POSITION_TARGET_GLOBAL_INT message (for commanding position and velocity targets in global scaled integers).
512MAV_PROTOCOL_CAPABILITY_TERRAINAutopilot supports terrain protocol / data handling.
1024MAV_PROTOCOL_CAPABILITY_RESERVED3Reserved for future use.
2048MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATIONAutopilot supports the MAV_CMD_DO_FLIGHTTERMINATION command (flight termination).
4096MAV_PROTOCOL_CAPABILITY_COMPASS_CALIBRATIONAutopilot supports onboard compass calibration.
8192MAV_PROTOCOL_CAPABILITY_MAVLINK2Autopilot supports MAVLink version 2.
16384MAV_PROTOCOL_CAPABILITY_MISSION_FENCEAutopilot supports mission fence protocol.
32768MAV_PROTOCOL_CAPABILITY_MISSION_RALLYAutopilot supports mission rally point protocol.
65536MAV_PROTOCOL_CAPABILITY_RESERVED2Reserved for future use.
131072MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CASTParameter protocol uses C-cast of parameter values to set the param_value (float) fields: https://mavlink.io/en/services/parameter.html#parameter-encoding. Note that either this flag or MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE should be set if the parameter protocol is supported.
262144MAV_PROTOCOL_CAPABILITY_COMPONENT_IMPLEMENTS_GIMBAL_MANAGERThis component implements/is a gimbal manager. This means the GIMBAL_MANAGER_INFORMATION, and other messages can be requested.
524288MAV_PROTOCOL_CAPABILITY_COMPONENT_ACCEPTS_GCS_CONTROLComponent supports locking control to a particular GCS independent of its system (via MAV_CMD_REQUEST_OPERATOR_CONTROL). WORK IN PROGRESS: Do not use in stable production environments (it may change).
1048576MAV_PROTOCOL_CAPABILITY_GRIPPERAutopilot has a connected gripper. MAVLink Grippers would set MAV_TYPE_GRIPPER instead. WORK IN PROGRESS: Do not use in stable production environments (it may change).

FIRMWARE_VERSION_TYPE

These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65.

ValueNameDescription
0FIRMWARE_VERSION_TYPE_DEVdevelopment release
64FIRMWARE_VERSION_TYPE_ALPHAalpha release
128FIRMWARE_VERSION_TYPE_BETAbeta release
192FIRMWARE_VERSION_TYPE_RCrelease candidate
255FIRMWARE_VERSION_TYPE_OFFICIALofficial stable release