[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kstars] kstars/skyobjects: Remove stepn variable
From:       Khudyakov Alexey <alexey.skladnoy () gmail ! com>
Date:       2011-07-23 20:07:53
Message-ID: 20110723200753.137A7A60AE () git ! kde ! org
[Download RAW message or body]

Git commit 8dc9ec468ea05ecfebf126cc4330743a79b34351 by Khudyakov Alexey.
Committed on 23/07/2011 at 15:37.
Pushed by khudyakov into branch 'master'.

Remove stepn variable

M  +2    -3    kstars/skyobjects/satellite.cpp

http://commits.kde.org/kstars/8dc9ec468ea05ecfebf126cc4330743a79b34351

diff --git a/kstars/skyobjects/satellite.cpp b/kstars/skyobjects/satellite.cpp
index 0143c9b..eec167f 100644
--- a/kstars/skyobjects/satellite.cpp
+++ b/kstars/skyobjects/satellite.cpp
@@ -724,7 +724,6 @@ 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 stepp =    720.0;
-        const double stepn =   -720.0;
         const double step2 = 259200.0;
 
         // Calculate deep space resonance effects
@@ -747,9 +746,9 @@ int Satellite::sgp4( double tsince )
             }
             
             if ( tsince > 0.0 )
-                delt = stepp;
+                delt =  stepp;
             else
-                delt = stepn;
+                delt = -stepp;
 
             iretn = 381; // added for do loop
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic