Troubleshooting

LD19 LiDAR

userHead Bence.Demeter 2024-11-19 18:35:57 48 Views0 Replies

Dear DFRobot,

I purchased an LD19 LiDAR sensor from you to make a self-driving toy-car. I attempted writing a python script to handle the raw data stream from the sensor. My question is, that i get bigger angles than 360, however you specified the interval for the angle to be between 0 and 360 degrees. I know the start and end angles occupy two bytes so that would allow for 655.35 degrees maximum. I followed everything in the manual. My question is, is that normal? If you need further assessment I can provide code snippets. But if that is the normal behaviour, then its not necessary. I just want to know if this method is correct: I read the whole the packet and validate it with the checking the header and doing the crc8 check,  then if its valid I get the start end angles which I decode with assuming little endian format, then calculate the step and angles for each data point in the way that is described in the manual. But I get bigger angles than 360 degrees this way.

Looking forward to hearing from you