[Kstars-devel] KDE/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Thu May 1 06:52:19 CEST 2008


SVN commit 802895 by harris:

When slewing to a new location, do not allow the "update" heartbeat to interrupt the 
slew and "snap" the focus to the new location.  

CCMAIL: kstars-devel at kde.org



 M  +8 -2      skymap.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skymap.cpp #802894:802895
@@ -659,6 +659,9 @@
 }
 
 void SkyMap::updateFocus() {
+    if ( slewing ) return;
+
+    //Tracking on an object
     if ( Options::isTracking() && focusObject() != NULL ) {
         if ( Options::useAltAz() ) {
             //Tracking any object in Alt/Az mode requires focus updates
@@ -674,6 +677,8 @@
             focus()->EquatorialToHorizontal( data->LST, data->geo()->lat() );
             setDestination( focus() );
         }
+
+    //Tracking on empty sky
     } else if ( Options::isTracking() && focusPoint() != NULL ) {
         if ( Options::useAltAz() ) {
             //Tracking on empty sky in Alt/Az mode
@@ -681,8 +686,9 @@
             focus()->EquatorialToHorizontal( data->LST, data->geo()->lat() );
             setDestination( focus() );
         }
-    } else if ( ! slewing ) {
-        //Not tracking and not slewing, let sky drift by
+
+    //Not tracking and not slewing, let sky drift by
+    } else {
         if ( Options::useAltAz() ) {
             focus()->setAlt( destination()->alt()->Degrees() );
             focus()->setAz( destination()->az()->Degrees() );


More information about the Kstars-devel mailing list