flyingw
(Paul)
June 16, 2019, 12:48pm
1
I’ve used my TFmini rangefinder successfully for ArudPlane landings.
I want to use it for copter landings.
How do you configure ArduCopter so that it uses the rangefinder instead of the barometer for the final landing?
I’ve set:
RNGFND_MAX_CM = 300 cm
Will the copter use the rangefinder below 300 cm?
Thanks,
Paul
mike
(mike kelly)
June 16, 2019, 7:23pm
2
Yes, as long as you have the other Rangefinder parameters for your device set correctly
flyingw
(Paul)
June 16, 2019, 7:24pm
3
Thanks Mike,
Will give it a try and report here.
Paul
mike
(mike kelly)
June 16, 2019, 7:36pm
4
if you use Mission Planner you can check that data from the rangefinder is coming in on the two parameters labeled “Sonar”.
flyingw
(Paul)
June 16, 2019, 8:54pm
5
Ok thanks Mike.
The rangefinder is now working and the values show up in the Mission Planner status page.
My main question is whether ArduCopter will use the rangefinder instead of the barometer when figuring out whether the copter has landed.
Paul
Clem
( Clément)
June 17, 2019, 10:24pm
6
Hi Paul, set EK2_RNG_USE_HGT =100 if you want the rangefinder to be the primary altitude source under 3m. 100 means 100% of RNGFND_MAX_CM. That’s 3m in your case.
1 Like
flyingw
(Paul)
June 17, 2019, 11:00pm
7
Thanks Clem, I tried it and it worked well.
Paul