Hi.
I want to use my TFMini Plus for simple front facing object avoidance like heading toward a wall or tree and have it stop say at 3 meters.
I did this first and realized it was for terrain following: https://ardupilot.org/copter/docs/common-benewake-tfmini-lidar.html
I have it hooked up to my Hex Cube black carrier board on Telemetry 2 using serial. I looked at the sonarrange in MP and it is showing a number from the lidar which seems correct. I do not want to use it for terrain follow though, so now should I disable those settings as I want to use front facing for object avoidance?
I found this: https://ardupilot.org/copter/docs/common-simple-object-avoidance.html?highlight=simple%20object
I am not sure exactly what I should do now as I have it setup facing down and reading terrain height? I am only going to be using this with Loiter mode to start and I still want to be able to use geofence as well. Do I leave everything the way I have it and set:
avoid_enable=7
prx_type=4
avoid_margin=3 (is that meters?)
avoid_behave=1
Thank you, David