Updated MS5837 Library to add support for the MS5837_30BA Sensor.

Dependents:   AUV_depth_sensor_072319

Files at this revision

API Documentation at this revision

Comitter:
JohnSarge
Date:
Tue Jul 23 13:38:32 2019 +0000
Parent:
3:128270625e55
Commit message:
Updated comments.

Changed in this revision

MS5837.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 128270625e55 -r d9ba4ce3e1d8 MS5837.cpp
--- a/MS5837.cpp	Tue Jul 23 13:14:46 2019 +0000
+++ b/MS5837.cpp	Tue Jul 23 13:38:32 2019 +0000
@@ -105,13 +105,13 @@
 
     temp     = 2000 + ((int64_t)dT * C[6]) / (1<<23);
     press    = (((int64_t)D1 * SENS) / (1<<21) - OFF) / (1<<15);
-    //if((temp/100)<20){         //Low temp
+    //if((temp/100)<20){         // BAR02
     //        //Serial.println("here");
     //        Ti = (11*int64_t(dT)*int64_t(dT))/(34359738368LL);
     //        OFFi = (31*(temp-2000)*(temp-2000))/8;
     //        SENSi = (63*(temp-2000)*(temp-2000))/32;
     //}
-    if((temp/100)<20){         //Low temp
+    if((temp/100)<20){         // BAR30
             //Serial.println("here");
             Ti = (3*int64_t(dT)*int64_t(dT))/(8589934592LL);
             OFFi = (3*(temp-2000)*(temp-2000))/2;