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

List:       kstars-devel
Subject:    [Kstars-devel] KDE/kdeedu/kstars/kstars
From:       Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date:       2010-03-10 16:54:20
Message-ID: 1268240060.032905.10032.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1101700 by khudyakov:

Use simpler logic for updating focus. Simple call
to HorizontalToEquatorial is much nices than if
statement. Additionally this eliminate need of HourAngle

This change is somewhat dangerous. Please review it.
CCMAIL: kstars-devel@kde.org

 M  +3 -12     skymap.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #1101699:1101700
@@ -795,19 +795,10 @@
             setDestination( focus() );
         }
 
-    //Not tracking and not slewing, let sky drift by
+    // Not tracking and not slewing, let sky drift by
+    // This means that horizontal coordinates are constant.
     } else {
-        if ( Options::useAltAz() ) {
-            focus()->setAlt( destination()->alt().Degrees() );
-            focus()->setAz( destination()->az().Degrees() );
-            focus()->HorizontalToEquatorial( data->lst(), data->geo()->lat() );
-            //destination()->HorizontalToEquatorial( data->lst(), data->geo()->lat() );
-        } else {
-            focus()->setRA( data->lst()->Hours() - HourAngle.Hours() );
-            setDestination( focus() );
-            focus()->EquatorialToHorizontal( data->lst(), data->geo()->lat() );
-            destination()->EquatorialToHorizontal( data->lst(), data->geo()->lat() );
-        }
+        focus()->HorizontalToEquatorial(data->lst(), data->geo()->lat() );
     }
 
     //Update the Hour Angle
_______________________________________________
Kstars-devel mailing list
Kstars-devel@kde.org
https://mail.kde.org/mailman/listinfo/kstars-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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