1 #ifndef ACCREALTIMEDIALOG_H
2 #define ACCREALTIMEDIALOG_H
6 #include "accelerometer.h"
7 #include "movingaverage.h"
10 class AccRealTimeDialog;
13 class AccRealTimeDialog : public QDialog {
16 AccRealTimeDialog(QWidget *parent = 0);
19 void startAccelerationMeasure();
20 void SetStopMeasureSpeed(double speed);
23 void changeEvent(QEvent *e);
26 void on_buttonAbort_clicked();
27 void readAccelerometerData();
30 Ui::AccRealTimeDialog *ui;
31 void resetAccelerometerMeasurements();
33 QTimer *accelerometerTimer;
35 Accelerometer* accelerometer;
37 MovingAverage* movingAverageZ;
39 int updateScreenCounter;
40 double accelerationStartThreshold;
41 double currentAcceleration;
46 double stopMeasureSpeed;
47 bool vehicleStartedMoving;
54 #endif // ACCREALTIMEDIALOG_H