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"
17 #include "calibratedialog.h"
19 class Accelerometer : public QObject
26 void getAcceleration(qreal &x, qreal &y, qreal &z);
27 void smoothData(qreal &x, qreal &y, qreal &z);
31 qreal getCalibrationX();
32 qreal getCalibrationY();
33 qreal getCalibrationZ();
36 qreal previousAccelerationX, previousAccelerationY, previousAccelerationZ;
37 qreal calibrationX, calibrationY, calibrationZ;
39 CalibrateDialog *calibrateDialog;
42 #endif // ACCELEROMETER_H