Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timing between scans is not consistent #97

Open
sms-00 opened this issue Mar 3, 2023 · 1 comment
Open

Timing between scans is not consistent #97

sms-00 opened this issue Mar 3, 2023 · 1 comment

Comments

@sms-00
Copy link

sms-00 commented Mar 3, 2023

I am currently using the A1 RPLIDAR unit.

I am running the SDK version 2.0 from GitHub. It appears to be working well except for one small issue with inconsistent time.

I am running the Ultra_simple routine on my Raspberry Pi 4. I have modified the ultra_simple routine to only show the time between scans and commented out the printf showing the values. No other changes.
I have noticed that the timing is not consistent between scans. Every 4th or 5th scan, it takes 250ms to receive a new scan rather than the typical 125miliscond. Why am I seeing this issue?

Times below are in milliseconds:
117
127
134
144
235 - why so long?
132
144
111
125
128
262 - why so long?
140
120
117
137
135
123
255- why so long?
Example code.txt

Thanks for your support!

@WubinXia
Copy link
Contributor

WubinXia commented May 5, 2023

There may be thread contention issues causing the data cache to be scanned, please try to improve the priority of the corresponding thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants