{
ui->setupUi(this);
ui->buttonStart->setDisabled(true);
+
accRealTimeDialog = NULL;
+
stopMeasureSpeed = 0;
ui->categorComboBox->addItem("Select category");
if(accRealTimeDialog == NULL)
accRealTimeDialog = new AccRealTimeDialog(this);
+ connect(accRealTimeDialog, SIGNAL(sendresult(double)), this, SLOT(sendResult(double)));
+
accRealTimeDialog->Calibrate();
ui->buttonStart->setEnabled(true);
return measureCategory;
}
+/**
+ *This slot function emit mainwindow sendresult.
+ *
+ **/
+void accelerationstart::sendResult(double result)
+{
+ emit sendresult(measureCategory, result);
+}