Skip to content

Rendezvous planner: a new circular orbit planned from a hyperbola is at the radius asked - #2825

Merged
lamont-granquist merged 1 commit into
devfrom
lows/rendezvous-hyperbola-orbit
Nov 29, 2026
Merged

lamont-granquist merged 1 commit into
devfrom
lows/rendezvous-hyperbola-orbit

Conversation

@sarbian

@sarbian sarbian commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

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.ManeuversToCircularOrbit handles 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.

…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
@github-actions

Copy link
Copy Markdown
Contributor

✅ Build Artifact 🚀

MechJeb2-86f4191.zip (built from b912cc1)

@lamont-granquist
lamont-granquist merged commit 1026e3c into dev Nov 29, 2026
3 checks passed
@lamont-granquist
lamont-granquist deleted the lows/rendezvous-hyperbola-orbit branch November 29, 2026 22:24
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.

2 participants