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

Unable to get acceleration in world reference frame #11

Open
jackflips opened this issue Jul 19, 2022 · 1 comment
Open

Unable to get acceleration in world reference frame #11

jackflips opened this issue Jul 19, 2022 · 1 comment

Comments

@jackflips
Copy link

jackflips commented Jul 19, 2022

I'm trying to obtain acceleration from my IMU in the world reference frame. The approach I'm trying is to take the quaternion from getQuat(), get its conjugate, then multiply it by the acceleration vector. My code is here: https://pastebin.com/rYEc3R8c

My expectation is that when I rotate my IMU, the rotated acceleration stays constant because it is measuring gravity in the world reference frame. But that is not what happens. Instead, the 'rotated' acceleration changes as the IMU rotates. Logs are here: https://pastebin.com/n6DdXgrj

Why is this happening? Could it be that the rotation quaternion isn't accurate?

@aster94
Copy link
Owner

aster94 commented Jul 19, 2022 via email

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