Added current moon/sun positions to the RadarScreen

This commit is contained in:
Arty Bishop committed 2026-04-26 14:32:16 +01:00
1 parent 18f8ab517d
commit b166e896c2
5 files changed
+72 -10

No files matched your search

@@ -114,7 +114,7 @@ object CelestialComputer {
distance = 1.0 + ((obsSet[2] - ASTRONOMICAL_UNIT) / ASTRONOMICAL_UNIT),
rangeRate = 1000.0 * obsSet[3],
latitude = latLon[0].toDegrees(),
longitude = 360.0 - latLon[1].toDegrees(),
longitude = latLon[1].toDegrees().let { if (it > 180.0) it - 360.0 else it },
rightAscension = raDec[0].toDegrees(),
declination = raDec[1].toDegrees()
)