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

bug fix: temp. sensor value is divided by 256. #21

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

Conversation

kamtar
Copy link

@kamtar kamtar commented Mar 16, 2019

Temp. Sensor sensitivity is 16 LSB/C we want to divide by 16 which means bitshift by 4 not 8.
Value is 11bit, padded to 16bit with a sign bit, so I guess this is what created the confusion.

@andreadevo
Copy link
Contributor

Thank you for the contribution! We have been having difficulty with the temperature readings on the LSM9DS1. The current code is broken as it outputs large negative values; however, I am still getting an output of -71 (at room temp) with your suggestion. Is this what you are getting?

@kamtar
Copy link
Author

kamtar commented Mar 19, 2019

I don't own the LSM9DS1 board. I was helping a friend with some diagnostics and I found this which I'm sure is wrong so I fixed it. I didn't saw any other obvious bugs.

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.

2 participants