[MAVLINK] List of supported commands - Live piloting

Live commands / events

The drone implement 2 components in the Mavlink ecosystem:
Autopilot component will use MAV_COMP_ID_AUTOPILOT1 as
target_component
Camera component will use MAV_COMP_ID_CAMERA
All commands and events are sent / received according to mavlink coding
and acknowledge system

Index:

  • Commands to MAV_COMP_ID_AUTOPILOT1
  • Events from MAV_COMP_ID_AUTOPILOT1
  • Commands to MAV_COMP_ID_CAMERA
  • Events from MAV_COMP_ID_CAMERA

Commands to MAV_COMP_ID_AUTOPILOT1

  • HEARTBEAT :
    The heartbeat should be sent to keep the udp link alive
  • SYSTEM_TIME
    : time_unix_usec is used to set the system time on the drone
  • SET MODE :
    • base_mode: unused
    • custom_mode: 32 bits value composed of:
      • main_mode: b0-b7
      • sub_mode: b8-b15
        > supported modes are:
main mode sub mode description
PX4_CUSTOM_MAIN_MODE_AUTO PX4_CUSTOM_SUB_MODE_AUTO_MISSION starts a flightplan mission
PX4_CUSTOM_MAIN_MODE_AUTO PX4_CUSTOM_SUB_MODE_AUTO_RTL starts a return home position
PX4_CUSTOM_MAIN_MODE_AUTO PX4_CUSTOM_SUB_MODE_AUTO_TAKEOFF arm the drone and take off
PX4_CUSTOM_MAIN_MODE_AUTO PX4_CUSTOM_SUB_MODE_AUTO_LAND lands the drone
PX4_CUSTOM_MAIN_MODE_POSCTL PX4_CUSTOM_SUB_MODE_POSCTL_POSCTL force manual control
PX4_CUSTOM_MAIN_MODE_MANUAL Any force manual control

Events from MAV_COMP_ID_AUTOPILOT1

Commands to MAV_COMP_ID_CAMERA

In case of thermal capability, 2 streams are provided “frontal” and
“thermal”

Events from MAV_COMP_ID_CAMERA

4 Likes