Skip to content

Fix accelerometer offset calculation in calibrateMPU9250 method#6

Open
absurdsquirrel wants to merge 1 commit intosparkfun:masterfrom
absurdsquirrel:accel_bias_fix
Open

Fix accelerometer offset calculation in calibrateMPU9250 method#6
absurdsquirrel wants to merge 1 commit intosparkfun:masterfrom
absurdsquirrel:accel_bias_fix

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