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

Add calibrate() method to estimate sensor bias #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

brusshamilton
Copy link

  • Adds a calibrate() method to estimate sensor bias. Based on the "USING SET AND RESET TO REMOVE BRIDGE OFFSET" section of the datasheet. These estimates are applied to correct measurements.
  • Adds additional member variables to hold the bias estimate. Until "calibrate()" is called these parameters default to the previous hard coded value (1 << 19) so that the previous behavior of the class is retained for existing users who do not take advantage of this feature.
  • Pulls out magnetic data reading into a separate internal function so that it can be reused by calibrate.

Russ Hamilton and others added 2 commits October 16, 2022 14:54
Based on the "USING SET AND RESET TO REMOVE BRIDGE OFFSET" section of the datasheet
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