Implemented first Hangar-Service
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
Diff: Barometer.h
- Revision:
- 25:abb0f208e6a9
- Parent:
- 16:3e2468d4f4c1
- Child:
- 46:fd5a62296b12
--- a/Barometer.h Mon Apr 13 14:54:35 2015 +0000 +++ b/Barometer.h Fri Apr 17 12:08:00 2015 +0000 @@ -16,8 +16,9 @@ float bmp280_val_to_temp(BMP280_S32_t adc_T); float bmp280_val_to_pa(BMP280_S32_t adc_P); float pressureToAltitude(const float pa) const; - float startingAltitude; - float lastPressure; + float sum; + float avg; + int nsamples; // Calibration parameters stored on chip // XXX: DO NOT modify the order, values are read into this section of the memory sequentially!