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

Pablo de Vicente p.devicente at wanadoo.es
Wed Apr 21 23:35:14 CEST 2004


CVS commit by pvicente: 

These changes are necessary to fix a bug in the Solar system viewer which shows in wrong
position the planets, mainly the inner ones, since they are depicted according to their
ecliptic geocentric coordinates and not according to their heliocentric ones.

The change here is minor. Instead of using "pName[i] )->ecLong()->Degrees()"  we use
"pName[i] )->helEcLong()->Degrees()" which returns the heliocentric ecliptic coordinates
referred to the mean equinox of the date.

CCMAIL: kstars-devel at kde.org


  M +1 -1      planetviewer.cpp   1.13


--- kdeedu/kstars/kstars/tools/planetviewer.cpp  #1.12:1.13
@@ -101,5 +101,5 @@ void PlanetViewer::initPlotObjects() {
         
         for ( unsigned int i=0; i<9; ++i ) {
-                elong[i] = dms( PCat->findByName( pName[i] )->ecLong()->Degrees() );
+                elong[i] = dms( PCat->findByName( pName[i] )->helEcLong()->Degrees() );
                 planet[i] = new KPlotObject( pName[i], pColor[i], KPlotObject::POINTS, 6, KPlotObject::CIRCLE );
                 planetLabel[i] = new KPlotObject( pName[i], pColor[i], KPlotObject::LABEL );




More information about the Kstars-devel mailing list