Closed
Description
The temperature calculation -- all least for the lsm6dsox is not working correctly. Where did it come from?
https://github.com/adafruit/Adafruit_CircuitPython_LSM6DS/blob/main/adafruit_lsm6ds/__init__.py#L402
According to the data sheet - section 4.3 (referenced in the comment to the code) , the temperature is just the raw value divided by the sensitivity with an offset of 25 degrees Celsius.
That is how it is implemented in Arduino
https://github.com/adafruit/Adafruit_LSM6DS/blob/master/Adafruit_LSM6DS.cpp#L468
Metadata
Metadata
Assignees
Labels
No labels