From 0c0a99608a4887eb4af4defa6b0edfd439baa148 Mon Sep 17 00:00:00 2001 From: Rikhard Kuutti Date: Thu, 18 Mar 2010 13:58:15 +0200 Subject: [PATCH] Time and speed now stored in member variables in carmainwindow --- Client/carmainwindow.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Client/carmainwindow.cpp b/Client/carmainwindow.cpp index 138daac..4218139 100644 --- a/Client/carmainwindow.cpp +++ b/Client/carmainwindow.cpp @@ -691,7 +691,7 @@ void CarMainWindow::readAccelerometerData() s.sprintf("%.2f", changeInAcceleration); currentAccelerationString = s; - double speed = 0.0; + speed = 0.0; speed = calculate->getCurrentSpeed(); speed = ((speed*1000)/kSecondsInHour); s.sprintf("%.2f", speed); @@ -703,9 +703,10 @@ void CarMainWindow::readAccelerometerData() // TODO //distanceTraveled; //horsepower; - //totalTime; - s.sprintf("%.2f", calculate->getTotalTime()); + time = calculate->getTotalTime(); + + s.sprintf("%.2f", time); totalTime = s; str.append("ca: " + currentAccelerationString + " G\n" ); -- 1.7.9.5