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

New wiimotes incorrectly report zero position IR data initially #88

Open
hifi opened this issue May 19, 2019 · 3 comments · Fixed by v1993/xwiimote#1 · May be fixed by #95
Open

New wiimotes incorrectly report zero position IR data initially #88

hifi opened this issue May 19, 2019 · 3 comments · Fixed by v1993/xwiimote#1 · May be fixed by #95

Comments

@hifi
Copy link

hifi commented May 19, 2019

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 from 0000x0000 to N/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.

@v1993
Copy link

v1993 commented Aug 28, 2019

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).

@R0NAM1
Copy link

R0NAM1 commented Apr 17, 2021

"I had to add a special case of ignoring the zero position of all sensors as it was causing issues."
May I ask how this was done? I am having the same issue and it seems that this would be the only fix.

@hifi
Copy link
Author

hifi commented Apr 17, 2021

There's nothing special to it, just ignore values that are zero in your code and assume it's offscreen.

v1993 added a commit to v1993/xwiimote that referenced this issue Jan 4, 2022
dev-0x7C6 pushed a commit to dev-0x7C6/xwiimote that referenced this issue Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants