Skip to content

Maneuver planner: a course correction can be planned more than one period ahead without an encounter - #2821

Merged
sarbian merged 1 commit into
devfrom
lows/planner-correction-period
Nov 29, 2026
Merged

sarbian merged 1 commit into
devfrom
lows/planner-correction-period

Conversation

@sarbian

@sarbian sarbian commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Part of #2475 (audit epic, MANV): HMANV-19 (Low).

Behaviour change

A course correction to a body can be planned more than one period ahead on a patch without an encounter; it was refused with "the burn would be after the encounter".

Fix

On a FINAL patch the burn is accepted at any time; the solver looks one period ahead.

Tested

Debug build of MechJeb2.sln on MuMech dev 5d04d30: no new warnings; MechJebLibTest passes. No unit test: the change is in the KSP-side code. Not flown on its own; an earlier in-game regression (a build with all the Low fixes, 13 runs of MechJeb2_UI Spikes 81, 82, 83 and 85, 2026-11-12) found no regression.

…riod ahead without an encounter

KSP ends a patch with no encounter (FINAL) one period after its start, and
treats it as unbounded itself. The course correction to a body rejected a
burn after that with "the burn would be after the encounter", an encounter
that does not exist, and gave the solver the time to that end as its
horizon. On such a patch the burn is now accepted at any time, and the
solver looks one period ahead of the burn.

Audit: HMANV-19
@github-actions

Copy link
Copy Markdown
Contributor

✅ Build Artifact 🚀

MechJeb2-836403a.zip (built from 3a9b717)

@sarbian
sarbian merged commit 32aa8c9 into dev Nov 29, 2026
3 checks passed
@sarbian
sarbian deleted the lows/planner-correction-period branch November 29, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant