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 "filereader.h"
17 #include "calculate.h"
18 #include "calibratedialog.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;
40 CalibrateDialog *calibrateDialog;
42 filereader* fileReader;
46 #endif // ACCELEROMETER_H