Repository navigation
Rendezvous planner: a new circular orbit planned from a hyperbola is at the radius asked - #2825
Merged
Merged
Conversation
…at the radius asked ManeuversToCircularOrbit took a hyperbola's ApR, which is negative, for an apoapsis below the radius: the one-burn case was skipped even where the orbit crosses the radius, and the plan always raised the apoapsis, which DeltaVToChangeApoapsis clamps to the burn radius, so the two nodes circularized at the present radius. From an escape trajectory above 400 km, "Establish new orbit at 200 km" now plans one burn where the orbit crosses 200 km ahead, or else a first burn now to an ellipse from here down to 200 km and a second that circularizes at its periapsis. Audit: HMANV-17
Contributor
✅ Build Artifact 🚀MechJeb2-86f4191.zip (built from b912cc1) |
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 #2474 (audit epic, RDV): HMANV-17 (Low).
Behaviour change
"Establish new orbit" in the Rendezvous planner from a hyperbola now circularizes at the radius asked: one burn where the orbit crosses it, or a burn to an ellipse down to that radius and a second at its periapsis. Before, it circularized at the present radius.
Fix
OrbitalManeuverCalculator.ManeuversToCircularOrbithandles a hyperbola.Design choice
One combined first burn to the ellipse. The alternative is a three-node plan.
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, and none of those runs plans a new orbit from a hyperbola.