From 4f7c7fba83e30da9cb84b6696ea8fadfa97f23b9 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Mon, 19 Jan 2026 12:19:39 -0500 Subject: [PATCH] update mission_planning doc with manual debugging notes --- docs/mission_planning.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/mission_planning.md b/docs/mission_planning.md index f16877b..8571422 100644 --- a/docs/mission_planning.md +++ b/docs/mission_planning.md @@ -122,6 +122,17 @@ Add Spacecraft body to config with placeholder position/velocity (set at runtime ### Problem: Incorrect Delta-V Direction After Multi-Day Wait +FIXME: while running this simulation config graphically, I noticed that a larger + problem is in simulation::find_dominant_body(). Earth's parent gets set to + the satellite's index, which should never happen. + I think the actual fix should be to have non-massive satellites in a different + array than celestial bodies, and treat them differently. + However, we should add more testint for the case that a comet or other massive + celestial body gets close to another body. + We do have tests/test_soi_transition.cpp, and tests/configs/soi_transition.toml + so maybe it's an initialization problem because the new test config starts + with both bodies in each others SOI? + **Symptom:** - Spacecraft enters LEO orbit correctly with negative energy (bound to Earth) - Waits 94 days for Earth-Mars launch window