I've recently acquired a YDLIDAR G2 and I'm trying to make it work based on this code. As we speak I've managed to communicate through serial port (I'm using a TTGO T-Beam and VS Code + Platformio) and receive information about the current angle and distance, but here is the problem. The distance is 0 for all the cases. I'm trying to figure out how to make it work properly on my own, but it would be amazing if you guys can give a hint of what may be causing this problem.
Hi!
I've recently acquired a YDLIDAR G2 and I'm trying to make it work based on this code. As we speak I've managed to communicate through serial port (I'm using a TTGO T-Beam and VS Code + Platformio) and receive information about the current angle and distance, but here is the problem. The distance is 0 for all the cases. I'm trying to figure out how to make it work properly on my own, but it would be amazing if you guys can give a hint of what may be causing this problem.
Thanks!