Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Z-axis ("yaw") not registering #58

Open
asilano opened this issue Dec 8, 2020 · 1 comment
Open

Z-axis ("yaw") not registering #58

asilano opened this issue Dec 8, 2020 · 1 comment

Comments

@asilano
Copy link

asilano commented Dec 8, 2020

Using a Wii remote (with attached MotionPlus, and nunchuk).

I've successfully made Windows 10 recognise the wiimote as a games controller, and can access the controller properties. Buttons all register, nunchuk stick controls one set of X/Y axes. X rotation responds to rotating the wiimote about the long axis; Y rotation to tipping it up and down.

But nothing reacts to "Yawing" the remote (rotating it about a vertical axis passing through the home button) - the Z axis and Z rotation bars never move.

Is this expected?

@jloehr
Copy link
Owner

jloehr commented Jan 28, 2021

It is currently by design. The driver doesn't support MotionPlus (as in doesn't use any of its sensors). So for the positional tracking of the Wii Remote, it is only using the Wii Remote build in accelerometer. That accelerometer picks up gravity (downward force, when idle on a flat surface). Using that downward vector you can give a rough position on the two orthogonal axes while not in quick motion. However you are unable to track any rotation round that downward vector itself.

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

No branches or pull requests

2 participants