Skip to content

Fix accelerometer offset calculation in calibrateMPU9250 method #6

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

absurdsquirrel
Copy link

Calibration code was not correctly preserving the LSB of the accelerometer offset register (used for temperature correction), and was not subtracting the full value from the accel offset. BSL the measured average bias before subtracting from register value produces the desired result. Also cleaned up some copypasta in the comments.

Calibration code was not correctly preserving the LSB of the accelerometer offset register (used for temperature correction), and was not subtracting the full value from the accel offset. BSL the measured average bias before subtracting from register value produces the desired result. Also cleaned up some copypasta in the comments.
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

Successfully merging this pull request may close these issues.

1 participant