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
New wiimotes incorrectly report zero position IR data initially #88
Comments
This is an actual bug. I think that possible workaround for now it to check that values aren't zeros too (doesn't look like a big loss anyways). |
"I had to add a special case of ignoring the zero position of all sensors as it was causing issues." |
There's nothing special to it, just ignore values that are zero in your code and assume it's offscreen. |
While working on a project that uses the raw IR data from the Wii remote I noticed the initial values of the IR sensors are zeroed out (0x0x0) instead of set to off-screen values (1023x1023x0).
This can be tested with
xwiishow
when powering on the controller and looking at the data before any IR light has been seen. The values are one-by-one corrected from0000x0000
toN/A
when IR light comes and goes.I had to add a special case of ignoring the zero position of all sensors as it was causing issues.
The text was updated successfully, but these errors were encountered: