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

Jason Harris kstars at 30doradus.org
Sat Dec 22 06:22:20 CET 2007


SVN commit 751529 by harris:

Fix bug in KSPlanetBase::setRearth(): need to use heliocentric
ecliptic coordinates, not geocentric, in computing the distance to a
body.  This bug caused all planet distances to be wrong, usually too
big.

This also fixes the slightly wrong asteroid magnitudes reported by
Akarsh.  With this fix, our magnitudes are equivalent to those
given at the JPL website.

Backporting to 3.5 branch as well.

CCMAIL: kstars-devel at kde.org



 M  +2 -2      ksplanetbase.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/ksplanetbase.cpp #751528:751529
@@ -166,8 +166,8 @@
     double eY = Earth->rsun()*cosB0*sinL0;
     double eZ = Earth->rsun()*sinB0;
 
-    ecLong()->SinCos( sinL, cosL );
-    ecLat()->SinCos( sinB, cosB );
+    helEcLong()->SinCos( sinL, cosL );
+    helEcLat()->SinCos( sinB, cosB );
     x = rsun()*cosB*cosL - eX;
     y = rsun()*cosB*sinL - eY;
     z = rsun()*sinB - eZ;


More information about the Kstars-devel mailing list