From 6a0bc5546251766715312fe50bb9596aafbf722b Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Fri, 26 Sep 2025 22:05:44 +0200 Subject: [PATCH] Correctly calculate the period from mean motion for minor planet center orbits (closes #3804) --- modules/space/kepler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/space/kepler.cpp b/modules/space/kepler.cpp index b045e57d8c..5455c92dcc 100644 --- a/modules/space/kepler.cpp +++ b/modules/space/kepler.cpp @@ -848,7 +848,7 @@ std::vector readMpcFile(const std::filesystem::path& file) { argPeriapsis, meanAnomaly, epochFromYMDdSubstring(epochDate), - std::chrono::seconds(std::chrono::hours(24)).count() / meanMotion + (360.0 / meanMotion) * std::chrono::seconds(std::chrono::hours(24)).count() ); }