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.commandlong_send(vehicle.master.targetsystem, vehicle.master.targetcomponent, mavutil.mavlink.MAV_CMD_DO_SET_MODE, 0,mavMode,0, 0, 0, 0, 0, 0)