[Kstars-devel] KDE/kdeedu/kstars/kstars
Alexey Khudyakov
alexey.skladnoy at gmail.com
Wed Mar 10 17:54:20 CET 2010
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 at 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
More information about the Kstars-devel
mailing list