MAV_CMD_DO_SET_MODE all possible modes


Hi everybody,
I am developing some pymavlink /dronekit code for PX4 flight controller.
I would like to send a command_long in order to change the flight mode. Unfortunately I cannot find anywhere the list of numbers corresponding to PX4 flight modes for MAV_CMD_DO_SET_MODE mavlink message.

Thank you very much for your help

P.S. Here is the dronekit commands I am using, if you have any suggestion I will be happy to hear them

vehicle._master.mav.command_long_send(vehicle._master.target_system, vehicle._master.target_component, mavutil.mavlink.MAV_CMD_DO_SET_MODE, 0,mavMode,0, 0, 0, 0, 0, 0)

1 Like