2 * Accelerometer class to access the device accelerometer
4 * @author Rikhard Kuutti <rikhard.kuutti@fudeco.com>
5 * @author Kai Rasilainen
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
18 #include "calculate.h"
20 class Accelerometer : public QObject
27 void getAcceleration(qreal &x, qreal &y, qreal &z);
28 void smoothData(qreal &x, qreal &y, qreal &z);
32 qreal getCalibrationX();
33 qreal getCalibrationY();
34 qreal getCalibrationZ();
37 qreal previousAccelerationX, previousAccelerationY, previousAccelerationZ;
38 qreal calibrationX, calibrationY, calibrationZ;
41 #endif // ACCELEROMETER_H