Implemented first Hangar-Service

Dependencies:   CalibrateMagneto QuaternionMath

Fork of SML2 by TobyRich GmbH

Revision:
2:3898208e02da
Parent:
1:c279bc3af90c
Child:
3:ee90a9ada112
--- a/Barometer.h	Wed Jan 14 15:44:34 2015 +0000
+++ b/Barometer.h	Wed Jan 14 17:57:11 2015 +0000
@@ -3,9 +3,16 @@
 
 #include "I2CPeripheral.h"
 class Barometer : public I2CPeripheral {
+private:
+    void setFilterCoefficient(const uint8_t iir);
+    void takeMeasurement(const uint8_t tmpovr, const uint8_t psrovr);
+    void bmp280_read_cal_reg(const uint8_t reg, char* val);
+    void bmp280_read_calibration();
+    
 public:
     Barometer(I2C &i2c);
-    float getPressure();
+    double getPressure();
+    double getHeightFromPressure(const double pressure);
 };
 
 #endif
\ No newline at end of file