-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
lis3mdl driver refactor #9448
lis3mdl driver refactor #9448
Conversation
@dagar, The refactoring work in Jake's pull request here is essentially a template we'd like to continue instituting in the other magnetometer drivers. The current lis3mdl driver copied/pasted a lot of irrelevant and dead code. We've effectively created a clean start to this driver and verified functionality. Let us know if you have feedback/questions. -Mark |
Thanks @mhkabir ! Also, just so anyone utilizing the lis3mdl is aware, the lis3mdl shows huge bias shifts with temperature changes and this is a known issue with the sensor: https://community.st.com/docs/DOC-1428-faq-lis3mdl-offset-thermal-drift -Mark |
P.S.anyone using the lis3mdl should aggressively move to switch away from that sensor! -Mark |
Looking good, thanks for helping to tidy up! |
Did an overhaul of the structure and organization of this magnetometer driver. Fixed temperature calculations, increased data rate, and optimized device register values. Removed useless code (artifacts of copy/paste from previous drivers), standardized functions, and in general improved the readability of the driver.