2 * Accelerometer class to access the device accelerometer
4 * @author Rikhard Kuutti <rikhard.kuutti@fudeco.com>
5 * @author Kai Rasilainen <kai.rasilainen@fudeco.com>
6 * @copyright (c) 2010 Speed Freak team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 #ifndef ACCELEROMETER_H
11 #define ACCELEROMETER_H
15 #include "calculate.h"
17 class Accelerometer : public QObject
24 void getAcceleration(qreal &x, qreal &y, qreal &z);
25 void smoothData(qreal &x, qreal &y, qreal &z);
29 qreal getCalibrationX();
30 qreal getCalibrationY();
31 qreal getCalibrationZ();
34 qreal previousAccelerationX, previousAccelerationY, previousAccelerationZ;
35 qreal calibrationX, calibrationY, calibrationZ;
38 #endif // ACCELEROMETER_H