]> git.mxchange.org Git - flightgear.git/commit
Fix bug 182 - make sun direction agree with position of sun from the ephemeris
authorTim Moore <timoore33@gmail.com>
Sat, 4 Dec 2010 15:25:39 +0000 (16:25 +0100)
committerTim Moore <timoore33@gmail.com>
Sat, 4 Dec 2010 15:26:46 +0000 (16:26 +0100)
commit79a2173ef9d6d04af8815d658c0a4daedf553ac4
tree306002dc628b34b23e0c897aec81724ac17b13bc
parent7a2e1be5bfd11f9e7d9c9bbdcd107336076fd809
Fix bug 182 - make sun direction agree with position of sun from the ephemeris

http://code.google.com/p/flightgear-bugs/issues/detail?id=182

There were two issues. The biggest is that the sunsolver was accessing
parameters from the ephemeris and doing a different calculation with
them to derive the right ascension and declination of the sun. I'm not
sure who is right, but I changed sunsolver to agree with the
ephemeris. Also, there was an inappropriate use of geodetic
coordinates in calculating  the sun latitude and longitude.

Also, I did some cleanup in updateSunPos().
src/Time/light.cxx
src/Time/sunsolver.cxx