X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=blobdiff_plain;f=Client%2Fcarmainwindow.cpp;fp=Client%2Fcarmainwindow.cpp;h=ee146ffe0055a1ea45b3e1f4a0f7cf01297d2571;hp=8464b27f900296d78e10013e11b4711dccb548b7;hb=3a9bbdb9aa83483c47355baa6e794ae033f8f4d1;hpb=9a81bc8fe5cb944592f815192817c4056cb168d9 diff --git a/Client/carmainwindow.cpp b/Client/carmainwindow.cpp index 8464b27..ee146ff 100644 --- a/Client/carmainwindow.cpp +++ b/Client/carmainwindow.cpp @@ -40,12 +40,11 @@ CarMainWindow::CarMainWindow(QWidget *parent):QMainWindow(parent), ui(new Ui::Ca accelerometer = new Accelerometer(); accelerometer->setSampleRate(100); - accelerometer->start(); measures = new Measures(); this->initializeMeasures(); - timer->setInterval(1000); + timer->setInterval(300); connect(this->timer, SIGNAL(timeout()), this, SLOT(after_timeout())); @@ -106,6 +105,7 @@ void CarMainWindow::on_autoStartButton_clicked() //measure = NULL; //measure = new MeasureDialog(); // connect(measure, SIGNAL(speedAchieved()), this, SLOT(openResultView())); + accelerometer->start(); timer->start(); // Show measure dialog. //measure->show();