diff options
author | Kari Hautamäki <kari.hautamaki@qt.io> | 2017-02-06 17:39:54 +0200 |
---|---|---|
committer | Titta Heikkala <titta.heikkala@qt.io> | 2017-02-08 10:16:14 +0000 |
commit | eaec031cc108dd37d9506eb1eda45c42b639c982 (patch) | |
tree | 98acdcc192b9a4ac54cf38956ac78c7810443896 /tradeshow/iot-sensortag/bluetoothdataprovider.h | |
parent | 0ad8e201e428f237a5e25d63a70b28041653a3b8 (diff) |
iot-sensortag: Visual style updated for most of the charts
- Updated appearance and graphics of ambient and object temperature, air pressure, humidity and light charts.
- Removed AirPressure chart
- Added Altitude chart
- Added altitude information to SensorTagData and derived classes
Change-Id: Ief8eb9dd4f87f967b037eed3e9a4dd12c3c6efc9
Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
Diffstat (limited to 'tradeshow/iot-sensortag/bluetoothdataprovider.h')
-rw-r--r-- | tradeshow/iot-sensortag/bluetoothdataprovider.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tradeshow/iot-sensortag/bluetoothdataprovider.h b/tradeshow/iot-sensortag/bluetoothdataprovider.h index ac7c417..f4c4b15 100644 --- a/tradeshow/iot-sensortag/bluetoothdataprovider.h +++ b/tradeshow/iot-sensortag/bluetoothdataprovider.h @@ -82,7 +82,8 @@ public slots: void motionReceived(MotionSensorData &data); protected: - void reset(); + void reset() override; + virtual void recalibrateZeroAltitude(); private: void updateState(); @@ -90,6 +91,7 @@ private: BluetoothDevice* activeDevice; QTimer timer; int m_smaSamples; + int m_zeroAltitudeSamples; float gyroscopeX_calibration; float gyroscopeY_calibration; float gyroscopeZ_calibration; |