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

Reading of multiple axis from ypr[]change at the same time #6

Open
mugenZebra opened this issue Apr 12, 2015 · 2 comments
Open

Reading of multiple axis from ypr[]change at the same time #6

mugenZebra opened this issue Apr 12, 2015 · 2 comments

Comments

@mugenZebra
Copy link

When the IMU is rotating around z axis, yaw, roll, pitch change at the same time like from 0 to 180. It's yaw for gyro that changes.
When the IMU is rotating around x axis, only roll changes as it's supposed to like from 0 to 90, and yaw and pitch goes +- 3 degrees. gyro pitch changes.
When the IMU is rotating around y axis and yaw changes from 0 to 90, pitch change by 30 and roll change by 50 degrees. For gyro[], it's pitch that changes.
What is wrong here?

@mugenZebra
Copy link
Author

I think I found the error. I was using DMP_FEATURE_LP_QUAT instead of DMP_FEATURE_6X_LP_QUAT. I guess the quaternion formula is only for 6X mode.

@zelante
Copy link

zelante commented Dec 11, 2016

Hi. I have the same problem but only on one rotation, two others is ok (from -180 to 180). Using gy9255 (mpu6555 + ak8963). Using DMP_FEATURE_6X_LP_QUAT but problem is not solved... How can i get range -180 to 180 on all three rotation? I guess i must change something in mpu.cpp in function quaternionToEuler.

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

2 participants