From kde-commits Sat Jul 23 20:07:53 2011 From: Khudyakov Alexey Date: Sat, 23 Jul 2011 20:07:53 +0000 To: kde-commits Subject: [kstars] kstars/skyobjects: Declare step2 as step^2/2. This way Message-Id: <20110723200753.1A12DA60BB () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=131145171726697 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;