High resolution barometer and altimeter using i2c mode

Dependents:   Q2_Stabi

Fork of ms5611 by Kevin Braun

Revision:
12:af100556f99e
Parent:
11:e0417b67a4b5
--- a/ms5611.h	Thu Dec 03 19:47:10 2015 +0000
+++ b/ms5611.h	Mon May 30 08:10:56 2016 +0000
@@ -156,6 +156,7 @@
      *
      * @param float known pressure (mB) at sea level
      */
+    float getAltitude();
     float getAltitudeFT(float sea_pressure);
     /** Calculate and returns sea level baro
      *    Returns float seal level barometer in feet
@@ -169,6 +170,9 @@
      * @param float known altitude in meters
      */
     float getSeaLevelBaroM(float known_alt);
+
+    uint8_t calcPT();
+
     
 private:
 #if not defined  MS5611i2cLOWLEVEL
@@ -186,8 +190,10 @@
     uint64_t cmd_adc(uint8_t cmd);
     uint32_t cmd_prom(uint8_t coef_num);
     uint8_t crc4(uint32_t  n_prom[]);
-    void calcPT();
     uint32_t PTbuffer[8];       // calibration coefficients
+
+    uint8_t step;
+    int32_t D1, D2;
   
 protected:
     I2C     _i2c;