I have a copter and am trying to do object-avoidance in doors. I have two lidars, one facing down in use with the optical flow sensor and one facing forward, their orientations are 25 and 0, respectively.
The optical flow sensor works great, because the copter is able to hold its position indoors in 3D space. Also, I can see the data coming from the front sensor is correct on mission planner.
However, for some reason, whatever the value of AVOID_BEHAVE is (0-1), the avoidance is not working properly. It does not really stop in loiter, and the slide behaviour is kind of inconsistent. What could be the cause ?