Slamtec / rplidar_sdk

Open source SDK for Slamtec RPLIDAR series products
BSD 2-Clause "Simplified" License
425 stars 253 forks source link

grabScanDataHq #73

Closed Programmer54 closed 1 year ago

Programmer54 commented 2 years ago

It always returns the same data. What can I do for it ?

RickCarp commented 2 years ago

Hi, Were you able to fix that ? I am having the same issue but just by connecting by socket.

Programmer54 commented 2 years ago

When you run the functions in the sdk, you have to wait for a while until the process is finished. A value is returned whether the operation was successful or not. You can check this value with the "IS_OK()" function. If you switch from one process to the next, I think the device goes into an error state and always returns the same data. Allow the device to perform its operations correctly. Wait for transactions.