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 * @author Jukka Kurttila <jukka.kurttila@fudeco.com>
7 * @copyright (c) 2010 Speed Freak team
8 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 #ifndef ACCELEROMETER_H
12 #define ACCELEROMETER_H
16 #include "calculate.h"
18 class Accelerometer : public QObject
25 void getAcceleration(qreal &x, qreal &y, qreal &z);
26 void smoothData(qreal &x, qreal &y, qreal &z);
30 qreal getCalibrationX();
31 qreal getCalibrationY();
32 qreal getCalibrationZ();
35 qreal previousAccelerationX, previousAccelerationY, previousAccelerationZ;
36 qreal calibrationX, calibrationY, calibrationZ;
39 #endif // ACCELEROMETER_H