Post · 5 min read· pp. 15–20

Dialect: AVSSUAS

WARNING

This topic documents the version of the dialect file in the mavlink/mavlink Github repository, which may not be up to date with the file in the source repository (it is up to the dialect owner to push changes when needed). The source repo should be listed in the comments at the top of the XML definition file listed below (but may not be).

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

INFO

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

Protocol dialect: 1

Protocol version: 2

Summary

TypeDefinedIncluded
Messages4235
Enums3159
Commands7171

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

Messages

AVSS_PRS_SYS_STATUS (60050)

AVSS PRS system status.

Field NameTypeUnitsDescription
time_boot_msuint32_tmsTimestamp (time since PRS boot).
error_statusuint32_tPRS error statuses
battery_statusuint32_tEstimated battery run-time without a remote connection and PRS battery voltage
arm_statusuint8_tPRS arm statuses
charge_statusuint8_tPRS battery charge statuses

AVSS_DRONE_POSITION (60051)

Drone position.

Field NameTypeUnitsDescription
time_boot_msuint32_tmsTimestamp (time since FC boot).
latint32_tdegE7Latitude, expressed
lonint32_tdegE7Longitude, expressed
altint32_tmmAltitude (MSL). Note that virtually all GPS modules provide both WGS84 and MSL.
ground_altfloatmAltitude above ground, This altitude is measured by a ultrasound, Laser rangefinder or millimeter-wave radar
barometer_altfloatmThis altitude is measured by a barometer

AVSS_DRONE_IMU (60052)

Drone IMU data. Quaternion order is w, x, y, z and a zero rotation would be expressed as (1 0 0 0).

Field NameTypeUnitsDescription
time_boot_msuint32_tmsTimestamp (time since FC boot).
q1floatQuaternion component 1, w (1 in null-rotation)
q2floatQuaternion component 2, x (0 in null-rotation)
q3floatQuaternion component 3, y (0 in null-rotation)
q4floatQuaternion component 4, z (0 in null-rotation)
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

AVSS_DRONE_OPERATION_MODE (60053)

Drone operation mode.

Field NameTypeUnitsDescription
time_boot_msuint32_tmsTimestamp (time since FC boot).
M300_operation_modeuint8_tDJI M300 operation mode
horsefly_operation_modeuint8_thorsefly operation mode

Enumerated Types

MAV_AVSS_COMMAND_FAILURE_REASON

ValueNameDescription
1PRS_NOT_STEADYAVSS defined command failure reason. PRS not steady.
2PRS_DTM_NOT_ARMEDAVSS defined command failure reason. PRS DTM not armed.
3PRS_OTM_NOT_ARMEDAVSS defined command failure reason. PRS OTM not armed.

AVSS_M300_OPERATION_MODE

ValueNameDescription
0MODE_M300_MANUAL_CTRLIn manual control mode
1MODE_M300_ATTITUDEIn attitude mode
6MODE_M300_P_GPSIn GPS mode
9MODE_M300_HOTPOINT_MODEIn hotpoint mode
10MODE_M300_ASSISTED_TAKEOFFIn assisted takeoff mode
11MODE_M300_AUTO_TAKEOFFIn auto takeoff mode
12MODE_M300_AUTO_LANDINGIn auto landing mode
15MODE_M300_NAVI_GO_HOMEIn go home mode
17MODE_M300_NAVI_SDK_CTRLIn sdk control mode
31MODE_M300_S_SPORTIn sport mode
33MODE_M300_FORCE_AUTO_LANDINGIn force auto landing mode
38MODE_M300_T_TRIPODIn tripod mode
40MODE_M300_SEARCH_MODEIn search mode
41MODE_M300_ENGINE_STARTIn engine mode

AVSS_HORSEFLY_OPERATION_MODE

ValueNameDescription
0MODE_HORSEFLY_MANUAL_CTRLIn manual control mode
1MODE_HORSEFLY_AUTO_TAKEOFFIn auto takeoff mode
2MODE_HORSEFLY_AUTO_LANDINGIn auto landing mode
3MODE_HORSEFLY_NAVI_GO_HOMEIn go home mode
4MODE_HORSEFLY_DROPIn drop mode

Commands (MAV_CMD)

MAV_CMD_PRS_SET_ARM (60050)

AVSS defined command. Set PRS arm statuses.

Param (Label)Description
1 (ARM status)PRS arm statuses
2User defined
3User defined
4User defined
5User defined
6User defined
7User defined

MAV_CMD_PRS_GET_ARM (60051)

AVSS defined command. Gets PRS arm statuses

Param (Label)Description
1User defined
2User defined
3User defined
4User defined
5User defined
6User defined
7User defined

MAV_CMD_PRS_GET_BATTERY (60052)

AVSS defined command. Get the PRS battery voltage in millivolts

Param (Label)Description
1User defined
2User defined
3User defined
4User defined
5User defined
6User defined
7User defined

MAV_CMD_PRS_GET_ERR (60053)

AVSS defined command. Get the PRS error statuses.

Param (Label)Description
1User defined
2User defined
3User defined
4User defined
5User defined
6User defined
7User defined

MAV_CMD_PRS_SET_ARM_ALTI (60070)

AVSS defined command. Set the ATS arming altitude in meters.

Param (Label)DescriptionUnits
1 (Altitude)ATS arming altitudem
2User defined
3User defined
4User defined
5User defined
6User defined
7User defined

MAV_CMD_PRS_GET_ARM_ALTI (60071)

AVSS defined command. Get the ATS arming altitude in meters.

Param (Label)Description
1User defined
2User defined
3User defined
4User defined
5User defined
6User defined
7User defined

MAV_CMD_PRS_SHUTDOWN (60072)

AVSS defined command. Shuts down the PRS system.

Param (Label)Description
1User defined
2User defined
3User defined
4User defined
5User defined
6User defined
7User defined