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 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
I am still confused on what I need to turnoff or change from setting it up as a downward facing camera for a rangefinder or terrain following? You have the object avoidance setup as rngfnd2 and not rngfind1. Is object avoidance setup on rngfnd2? I will only have one camera. Also, you have avoid_enable=2. I read maybe it should be on avoid_enable=7 to still be able to all including geo fence? Sorry, just confused.
Thank you so much for helping me out. I tested today and all went pretty well. With the max distance recommended of 6m outdoors for this lidar, I have set the avoid_margin to 5 meters and if going over 11 mph it has a hard time coming to a stop before it hits the object. Any recommendations besides maybe getting a longer range lidar?
Played around with it more today. I tried the rngfnd_max to 900 cm and the avoid_margin to 800 cm and it will read it, but only below 10 mph. If I go above 10 mph it will come very close or hit the trees or wall. I also tried playing with the loit_brk_accel and loit_brk_delay, but did not seem to change much. I ordered a TF-02 Pro today and will try that next week. Over 10 mph it does not pick the object up and react fast enough. It works, just has some limitations. Video below is at @6 mph and @10 mph. Being a bigger drone it obviously is a lot harder to stop quickly. Will keep working and trying things. Thank you @mlebret