From: Kai Rasilainen Date: Wed, 10 Mar 2010 09:59:57 +0000 (+0200) Subject: Earth gravity added to calculations. X-Git-Tag: v0.1~62 X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=commitdiff_plain;h=8cd1d43340327e94690cb13de6bb2dbef00c9ec0 Earth gravity added to calculations. --- diff --git a/Client/calculate.cpp b/Client/calculate.cpp index 769c92a..aa579ec 100644 --- 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);