Closed AsCress closed 3 months ago
This pull request refactors the BMP180 sensor class to improve its accuracy and readability. The changes include the addition of module-level constants, new methods for reading calibration values, updated temperature and pressure calculations, and the removal of redundant code. These updates are based on the BMP180 datasheet and reference libraries from Adafruit.
Files | Changes |
---|---|
pslab/external/BMP180.py |
Refactored the BMP180 sensor class to improve accuracy and readability by using constants, new calibration methods, and updated calculations based on the datasheet. |
@bessman I have (tried to) implement all the changes you suggested. This PR is now up-to-date with my changes.
@bessman I've made all the changes that we discussed and that you've suggested. Now, the pressure
, temperature
and altitude
can be accessed as properties: -
Let me know if there's something still not quite right style-wise :))
Looks good, thank you!
Fixes the
BMP180
sensor. The following libraries were used as a reference: -Screenshots / Recordings
Here, is a screenshot of the readings. These are consistent with the results provided by other python and Arduino drivers.
@bessman Please let me know your views on this.
Summary by Sourcery
Fix BMP180 sensor functionality and refactor the BMP180 class to enhance readability and support multiple operating modes.
Bug Fixes:
Enhancements: