MAVLink Include Files: common.xml

MAVLink Protocol Version

The current MAVLink version is 2.3. The minor version numbers (after the dot) range from 1-255.

MAVLink Type Enumerations

MAVLink Commands (MAV_CMD)

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

MAVLink Messages

SCRIPT_ITEM ( #180 )

[Message] Message encoding a mission script item. This message is emitted upon a request for the next script item.

Field Name Type Description
target_system uint8_t System ID
target_component uint8_t Component ID
seq uint16_t Sequence
name char[50] The name of the mission script, NULL terminated.

SCRIPT_REQUEST ( #181 )

[Message] Request script item with the sequence number seq. The response of the system to this message should be a SCRIPT_ITEM message.

Field Name Type Description
target_system uint8_t System ID
target_component uint8_t Component ID
seq uint16_t Sequence

SCRIPT_REQUEST_LIST ( #182 )

[Message] Request the overall list of mission items from the system/component.

Field Name Type Description
target_system uint8_t System ID
target_component uint8_t Component ID

SCRIPT_COUNT ( #183 )

[Message] This message is emitted as response to SCRIPT_REQUEST_LIST by the MAV to get the number of mission scripts.

Field Name Type Description
target_system uint8_t System ID
target_component uint8_t Component ID
count uint16_t Number of script items in the sequence

SCRIPT_CURRENT ( #184 )

[Message] This message informs about the currently active SCRIPT.

Field Name Type Description
seq uint16_t Active Sequence