Skip to content

ism330dl: Add two-point temperature calibration methods. #107

@nedseb

Description

@nedseb

Context

Part of the temperature calibration harmonization (#103).

The ISM330DL has an embedded temperature sensor. Like the LIS2MDL, the raw reading has no guaranteed absolute zero point. A two-point software calibration mechanism is needed, consistent with the harmonized interface defined in #103.

Blocked by #50 (ISM330DL driver not yet merged).

TODO

  • Add self._temp_gain = 1.0 and self._temp_offset = 25.0 in __init__ (empirical default)
  • Add set_temp_offset(self, offset_c) method (simple offset, gain=1.0)
  • Add calibrate_temperature(self, ref_low, measured_low, ref_high, measured_high) method
  • Apply calibration in temperature method: return self._temp_gain * raw_value + self._temp_offset

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    driverConcerne un driver spécifiqueenhancementNew feature or requestreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions