projects
/
speedfreak
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8f71aa
)
Time and speed now stored in member variables in carmainwindow
author
Rikhard Kuutti
<rikhard.kuutti@fudeco.com>
Thu, 18 Mar 2010 11:58:15 +0000
(13:58 +0200)
committer
Rikhard Kuutti
<rikhard.kuutti@fudeco.com>
Thu, 18 Mar 2010 11:58:15 +0000
(13:58 +0200)
Client/carmainwindow.cpp
patch
|
blob
|
history
diff --git
a/Client/carmainwindow.cpp
b/Client/carmainwindow.cpp
index
138daac
..
4218139
100644
(file)
--- 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" );