bluerobotics / ms5837-python

A python module to interface with MS5837-30BA and MS5837-02BA waterproof pressure and temperature sensors.
MIT License
26 stars 36 forks source link

check out ian black's work #14

Open jaxxzer opened 4 years ago

jaxxzer commented 4 years ago

https://github.com/IanTBlack/br_sensors

1) Used TEOS-10 pressure to depth conversion to compute depth. 2) Changed variable/function names to more closely match MS5837-30BA manual. 3) Combined read and temperature/pressure/depth/altitude functions into one. 4) temperature/pressure/depth/altitude are called independently of one another. They do rely on one another, but I formatted in a way that doesn't require users to call pressure before calling depth. 5) absolute_pressure() give the absolute pressure reading in user selected units 6) pressure() removes atmospheric pressure if given. if not it uses standard atmospheric pressure.