Gazebo_precision_landing.py doesnt land on the aruco marker


#1

I followed the " Write Dronekit Script to Precision Land on Aruco" video managed to make the drone takeoff and detect the aruco market, however during landing the drone does not maneuver to position itself on the marker and lands vertically. I tried to double check if there is any error messages but theres none. Anyone could help me check out if theres anything wrong with my code?

gazebo_precision_landing.py (6.0 KB)


#2

Ensure you have the rangefinder enabled using settings as in the video, including RNGFND1_TYPE to 1.


#3

I tried it with param set RNGFND1_TYPE 1 but it shows “APM: PreArm: Rangefinder 1 was not detected”

and the python script wont arm the vehicle


#4

Nevermind I figured it out
I went to the iris_with_ardupilot -> model.sdf file and added a rangefinder sensor

Now the precision landing works fine


closed #5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.