[Kstars-devel] branches/kstars/summer/kdeedu/kstars/kstars
Akarsh Simha
akarshsimha at gmail.com
Fri Jul 11 19:10:39 CEST 2008
SVN commit 831009 by asimha:
KSNumbers::updateValues accepts a Julian Day, not a Julian Year.
Thanks Jason.
CCMAIL: kstars-devel at kde.org
M +4 -4 starobject.cpp
--- branches/kstars/summer/kdeedu/kstars/kstars/starobject.cpp #831008:831009
@@ -169,10 +169,10 @@
// DEBUG Edit. For testing proper motion. TODO: Remove later
if( name == "Rigel Kentaurus" ) {
// Populate Trail with various positions
- KSNumbers num( 2000.0 );
- long double jd;
- for( jd = 2000.0; jd <= 12000.0; jd += 500.0 ) {
- num.updateValues( jd );
+ KSNumbers num( 2000.0 * 365.0 ); // Some estimate, doesn't matter.
+ long double jy;
+ for( jy = 2000.0; jy <= 12000.0; jy += 500.0 ) {
+ num.updateValues( jy * 365.238 );
double ra, dec;
getIndexCoords( &num, &ra, &dec );
Trail.append( new SkyPoint( ra, dec ) );
More information about the Kstars-devel
mailing list