Skip to content

Incorrect temperature calculation  #54

Closed
@jerryneedell

Description

@jerryneedell

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions