diff options
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 |