Hello,
Following one of the topic on the forum, we tried to perform landing and RTL on Anafi and Anafi USA. We switched to the required mode using the following function :
master.mav.command_long_send(
master.target_system, # Target system (drone ID)
master.target_component, # Target component (autopilot)
mavutil.mavlink.MAV_CMD_DO_SET_MODE, # MAVLink command
1, # Confirmation (0 = no confirmation needed)
float(base_mode), # Base mode (PX4/Ardu mode system)
float(main_mode), # Main mode (navigation mode)
float(sub_mode), # Sub mode
0,
0,
0,
0,
)
And despite being able to swithch to some modes with it, we were not able to land/RTL. Is this the correct way of doing it? Is there any other way of doint it?