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

Gyroscope / Accelerometer return wrong values #491

Open
MrHuu opened this issue Jan 25, 2022 · 0 comments
Open

Gyroscope / Accelerometer return wrong values #491

MrHuu opened this issue Jan 25, 2022 · 0 comments

Comments

@MrHuu
Copy link

MrHuu commented Jan 25, 2022

I noticed some strange behavior while trying to make use of the new3DS's gyroscope and accelerometer.
After reading both gyroscope and accelerometer data, i noticed the returned accelerometer data is actually the rotation data and vice versa.

  • hidAccelRead() returns a accelVector * (x,y,z) struct containing values from the gyroscope (rotation).
  • hidGyroRead() returns a angularRate * (x,z,y) struct containing the accelerometer values (acceleration).

On an additional note:
I also noticed, before specifically enabling the sensors with:

HIDUSER_EnableAccelerometer();
HIDUSER_EnableGyroscope();

The gyroscope(accelerometer?) data already is accessible and updated using hidGyroRead(),
while the accelerometer hidAccelRead() data is not.

  • The gyroscope(accelerometer?) is enabled by default until it's disabled with:
HIDUSER_DisableGyroscope();

Wouldn't it be desired for the gyroscope(accelerometer?) to be disabled by default?

*Now i'm confused myself;
The accelerometer data is available, before enabling, returned from hidGyroRead().

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

1 participant