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

With 6.12, Accel factor is 16384 @ 1g leading to errors in dmpGetLinearAccel #526

Open
BjornGu opened this issue Mar 25, 2020 · 0 comments

Comments

@BjornGu
Copy link

BjornGu commented Mar 25, 2020

I was on this issue for quite a while ago, at that time complaining that dmpGetLinearAccel() didn't work with 6.12. Can't find whether I managed to submit an issue or not at that time, apparently not.

Taking a deeper look I now find that with 6.12 getAccel returns twice the value compared to before, while dmpGetLinearAccel() still compensates for gravity using 8192 for 1g.

So dmpGetLinearAccel() should instead use 16384, or even better take the selected acceleration scale factor into consideration.

The latter is actually a question as I have yet to understand whether it is generally OK to change gyro and accel scale factor settings while using the "dmp-calls"? I've seen that 2000 degs/s and +/- 2 g is intentionally set in the init code.

Regards,
BjornGu

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