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

lis3mdl driver refactor #9448

Merged
merged 5 commits into from
May 16, 2018
Merged

lis3mdl driver refactor #9448

merged 5 commits into from
May 16, 2018

Conversation

dakejahl
Copy link
Contributor

@dakejahl dakejahl commented May 10, 2018

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.

@mcsauder
Copy link
Contributor

mcsauder commented May 14, 2018

@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

@mhkabir
Copy link
Member

mhkabir commented May 14, 2018

@mcsauder @dakejahl Awesome work!

@mcsauder
Copy link
Contributor

mcsauder commented May 14, 2018

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

@mcsauder
Copy link
Contributor

P.S.anyone using the lis3mdl should aggressively move to switch away from that sensor!

-Mark

@LorenzMeier
Copy link
Member

Looking good, thanks for helping to tidy up!

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.

4 participants