Make sure your PLND_ parameters are correct. For MAVLink, PLND_TYPE = 1. If you are using the latest ArduCopter release and if you have set up everything correctly, on your GCS it should print something like “Target Detected”.
Once you have confirmed everything is working, just switch to mode land. It will automatically do a precision landing. You do not need to enable anything else
@gmehta I would suggest actually keeping the precision loiter switch off. It’s not needed for precision landing. For the first time, if something goes wrong, you might want to recover using Loiter.
Precision loiter on ch7 shows as precloiter low, med and high on mavlink message depending on the position of the switch. Does it mean it’s activated all the time or i have to flip switch on any particular position
Hi. I followed the same steps as you, but in Mission Planner’s simulation, I couldn’t observe any change at the time of landing. The vertical descent continued. Did you do your tests during flight or did you use any simulation environment? Or any idea where I might be doing wrong? I would be very happy if you could help, thank you.
I am using a raspberry pi b+ as companion pc. I am trying to land the UAV on a Aruco marker placed on the ground.
Here is the code:
def send_land_message(x,y):
msg = vehicle.message_factory.landing_target_encode(
0,
0,
mavutil.mavlink.MAV_FRAME_BODY_OFFSET_NED,
x,
y,
0,
0,
0,)
vehicle.send_mavlink(msg)
vehicle.flush()
x,y accoring to the aruco marker. But the vehicle not responding to the function. I have simulated the drone in gazebo with the same script, it works fine. Script activates land mode when the marker is detected, but no adjustments happening.