Blue Robotics Bar02 Pressure Sensor sample MS5837-02BA Pressure Sensor
Dependents: Bar02_MS5837-02BA OCE360_Project
Fork of MS5837 by
Diff: MS5837.cpp
- Revision:
- 2:365c8caabc0e
- Parent:
- 1:ee71a13b8e68
diff -r ee71a13b8e68 -r 365c8caabc0e MS5837.cpp --- a/MS5837.cpp Tue Jul 17 16:11:48 2018 +0000 +++ b/MS5837.cpp Tue Jul 17 16:35:51 2018 +0000 @@ -114,10 +114,10 @@ SENS2 = SENS-SENSi; temp = (temp-Ti); - press = (((D1*SENS2)/2097152l-OFF2)/32768l)/100; + press = (((D1*SENS2)/2097152l-OFF2)/32768l); T_MS5837 = (float) temp / 100.0f; // result of temperature in deg C in this var - P_MS5837 = (float) press / 1.00f; // result of pressure in mBar in this var + P_MS5837 = (float) press / 100.0f; // result of pressure in mBar in this var }