In the MAVProxy Command Prompt:
mode guided
arm throttle
takeoff 4
Launch the python script to detect the Aruco marker
I can see that the Aruco marker is detected correctly and that the landing coordinates are calculated. However, when I enter “mode land” in the MAVProxy Command Prompt, the drone lands vertically.
My suspicion is that the mav.landing_target_send is not taken into account for some reason.
Can you upload a log of this flight so I can check if everything is setup correctly. I also haven’t had a look at my AirSim script for a while, so I might need to check if that is outputting what it should
Prior to Copter 4.2, you could only send LANDING_TARGET mavlink message as angles so this flag was unused. Since then, we can now instead send a 3D body FRD vector. The “position_valid” flag is used to switch between the two.