-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Update frequency for IMU #443
Comments
I wonder if number 300 is something you can confirm or it might be
something specific to my PC?
The controller's internal update frequency (for both ZCM1 and ZCM2) is
roughly 180 Hz, I believe. Polling it faster than that would not yield
any new values, i.e. psmove_poll() returns 0.
|
Thanks for reply @nitsch . I am testing example.c file. Added some code to check FPS separately when I have returned zero or non-zero. I am using timeGetTime function and count how many I can get in one second. Then I see also about 5000000 fps for non-pooled values that is causing quite a overhead for CPU. The fans go loud immediately. I changed code to disable noblocking and got only 'proper' values with same FPS. But there was no 'zero' calls from psmove_pool(). My CPU was almost idle and fans quiet. @thp |
I don't think there is an option yet for blocking vs. non-blocking (or
even ansync) reads. But it may be useful. If you want to add that to the
library, just go ahead. Contributions are always welcome.
|
Feel free to make a pull request. The example code, however, usually has the right way to do it -- for integrating sensor readings over time, you want to poll until it returns zero, and process every event, if you just care about the "latest" values, just poll until it returns zero, and then process only the last event (throwing away all in-between values, as they are "old data" anyway). |
Hello.
I was testing examples and they seem to use a high CPU. My idea is that if there is no data they create "empty" iterations.
After adding some code seems like I can get 300 FPS which of course is not easy to schedule on Windows.
I wonder if number 300 is something you can confirm or it might be something specific to my PC?
Thanks.
The text was updated successfully, but these errors were encountered: