X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fephemeris%2Fstar.cxx;h=3a74bac31da0006ca353b06a2b4fa4fc9681763f;hb=a0bdec284624820feb0a96a06c0c38e2f07d5e4e;hp=01f20b729520b3977bbc36e7faaca63a93040cd8;hpb=82459a2802a939434f9fc5b88d2b2aea58f0043d;p=simgear.git diff --git a/simgear/ephemeris/star.cxx b/simgear/ephemeris/star.cxx index 01f20b72..3a74bac3 100644 --- a/simgear/ephemeris/star.cxx +++ b/simgear/ephemeris/star.cxx @@ -84,9 +84,9 @@ void Star::updatePosition(double mjd) updateOrbElements(mjd); - actTime = fgCalcActTime(mjd); - ecl = DEG_TO_RAD * (23.4393 - 3.563E-7 * actTime); // Angle in Radians - eccAnom = fgCalcEccAnom(M, e); // Calculate the eccentric Anomaly (also known as solving Kepler's equation) + actTime = sgCalcActTime(mjd); + ecl = SGD_DEGREES_TO_RADIANS * (23.4393 - 3.563E-7 * actTime); // Angle in Radians + eccAnom = sgCalcEccAnom(M, e); // Calculate the eccentric Anomaly (also known as solving Kepler's equation) xv = cos(eccAnom) - e; yv = sqrt (1.0 - e*e) * sin(eccAnom);