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

qToFloat mask bits default to short #3

Open
vcortex91 opened this issue Feb 14, 2017 · 0 comments
Open

qToFloat mask bits default to short #3

vcortex91 opened this issue Feb 14, 2017 · 0 comments

Comments

@vcortex91
Copy link

vcortex91 commented Feb 14, 2017

on line 618 of src/SparkFunMPU9250-DMP.cpp, in my implementation (Arduino 1.6.5, Atmega32U4 Pro Micro) the variable is assumed to be a uint16_t and causes undesirable behavior when q>15. probably should be specified as unsigned long.

output from loop with q=16:
1
3
7
F
1F
3F
7F
FF
1FF
3FF
7FF
FFF
1FFF
3FFF
7FFF
FFFFFFFF

@vcortex91 vcortex91 changed the title qToFloat mask bits default to int qToFloat mask bits default to short Feb 14, 2017
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