projects
/
speedfreak
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e75cc2
)
Earth gravity added to calculations.
author
Kai Rasilainen
<kai.rasilainen@gmail.com>
Wed, 10 Mar 2010 09:59:57 +0000
(11:59 +0200)
committer
Kai Rasilainen
<kai.rasilainen@gmail.com>
Wed, 10 Mar 2010 09:59:57 +0000
(11:59 +0200)
Client/calculate.cpp
patch
|
blob
|
history
diff --git
a/Client/calculate.cpp
b/Client/calculate.cpp
index
769c92a
..
aa579ec
100644
(file)
--- a/
Client/calculate.cpp
+++ b/
Client/calculate.cpp
@@
-64,6
+64,8
@@
void Calculate::reset()
void Calculate::calculateParameters(double currentAcceleration, double seconds)
{
double force, power1, power2;
+
+ currentAcceleration *= G_ACCELERATION;
numOfIterations++;
totalTime = (totalTime + seconds);