Repository navigation
Maneuver planner: a course correction can be planned more than one period ahead without an encounter - #2821
Merged
Conversation
…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
Contributor
✅ Build Artifact 🚀MechJeb2-836403a.zip (built from 3a9b717) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.