[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kstars] kstars/skyobjects: Declare step2 as step^2/2. This way
From: Khudyakov Alexey <alexey.skladnoy () gmail ! com>
Date: 2011-07-23 20:07:53
Message-ID: 20110723200753.1A12DA60BB () git ! kde ! org
[Download RAW message or body]
Git commit d42673200808dbd98b6df80021bd5ba27fa0d84e by Khudyakov Alexey.
Committed on 23/07/2011 at 15:39.
Pushed by khudyakov into branch 'master'.
Declare step2 as step^2/2. This way it's not a magic number
M +1 -1 kstars/skyobjects/satellite.cpp
http://commits.kde.org/kstars/d42673200808dbd98b6df80021bd5ba27fa0d84e
diff --git a/kstars/skyobjects/satellite.cpp b/kstars/skyobjects/satellite.cpp
index ce99d1a..72250ff 100644
--- a/kstars/skyobjects/satellite.cpp
+++ b/kstars/skyobjects/satellite.cpp
@@ -724,7 +724,7 @@ int Satellite::sgp4( double tsince )
const double g54 = 4.4108898;
const double rptim = 4.37526908801129966e-3; // this equates to 7.29211514668855e-5 rad/sec
const double step = 720.0;
- const double step2 = 259200.0;
+ const double step2 = step * step / 2;
// Calculate deep space resonance effects
dndt = 0.0;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic