diff options
author | Otto Ryynänen <otto.ryynanen@qt.io> | 2017-02-03 12:55:13 +0200 |
---|---|---|
committer | Titta Heikkala <titta.heikkala@qt.io> | 2017-02-03 12:21:58 +0000 |
commit | a1b4c4ad291ff531b6efe8fabe409dfaae3cc854 (patch) | |
tree | 9a3b0c0c0f17924276134432808221ebd0bbe46d /tradeshow/iot-sensortag/bluetoothdataprovider.h | |
parent | 0a85dc729c5602c0914172bbf4b2b4e3171fcd85 (diff) |
RotationPage added
Added a page that has three rotating disks.
Current pictures are placeholders for final graphics.
SensorTag can be recalibrated.
Change-Id: I0666ab06e665d8c40861e170f36b09013b722973
Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
Diffstat (limited to 'tradeshow/iot-sensortag/bluetoothdataprovider.h')
-rw-r--r-- | tradeshow/iot-sensortag/bluetoothdataprovider.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tradeshow/iot-sensortag/bluetoothdataprovider.h b/tradeshow/iot-sensortag/bluetoothdataprovider.h index 21db2c6..ac7c417 100644 --- a/tradeshow/iot-sensortag/bluetoothdataprovider.h +++ b/tradeshow/iot-sensortag/bluetoothdataprovider.h @@ -81,12 +81,19 @@ public slots: void lightIntensityReceived(double lightIntensity); void motionReceived(MotionSensorData &data); +protected: + void reset(); + private: void updateState(); float countRotationDegrees(double degreesPerSecond, quint64 milliseconds); BluetoothDevice* activeDevice; QTimer timer; int m_smaSamples; + float gyroscopeX_calibration; + float gyroscopeY_calibration; + float gyroscopeZ_calibration; + MotionSensorData latestData; }; #endif // BLUETOOTHDATAPROVIDER_H |