Hello all,
I am trying to implement obstacle avoidance using LD-06 lidar on a quadcopter and I am facing problems with Lidar. The lidar seems to be measuring faulty distance when viewed on the proximity screen. When the copter takes off and when switched into obstacle avoidance mode in loiter the copter freaks out and starts to move abruptly. I tried to take it to a height where there were no obstacles and it seemed to let me control the directions. but once the copter comes close to an obstacle even though the obstacle is out the the minimum detection range the copter freaks out.
I did try to check whether the sensor is faulty using Rviz but the sensor works fine.
Please help me to sort out this issue obstacle_param_list.param (19.5 KB)
link to drive for videos and log data:obstacle avoidance - Google Drive
Dear Geofrancis,
Thank you for your inputs, but the Ld-06 lidar works well outdoors as mentioned by the manufacturer and I did test the sensors indoors. I have attached a Google Drive link testing sensors. It does fluctuate indoors. I believe that the driver present for the sensor is somehow bugged or out of date.
good to know, I will look at my setup again, I couldn’t find any documentation on outdoor use I assumed it was the sensor, as I had seen similar noise in the results of the lidar it replaced when in direct sunshine.
I Have added a filter to my code to only use high-intensity returns to filter out the false returns but i have not tested it yet.
looking through the Ardupilot driver I don’t see it using the signal intensity for anything. so its probably the same issue as I am having with no filter set. where Rvis will have its filter set correctly so it’s not getting noise from sunlight around you.
does all the lidar noise go away on ardupilot if you take it into a dark room?
there is mention of the function but i cant find it implemented.
RVIS driver has the confidence set very high to filter out noise.
@peterbarker could you have a look at this? I dont see signal confidence implemented on ardupilot for the ld06.
Hello Geofrancis,
I am eliminating the possibility of sunlight because I tested the lidar in a dark room and it still flickered. It still shows vague distance measurements. As we suspect, it should be done with the driver for LD-06.
let’s see if anyone has any other theories regarding this issue.
Thank you for responding