Skip to content

Hohmann transfer: the one-burn flyby / intercept node meets the target again (#2788) - #2790

Merged
sarbian merged 1 commit into
devfrom
fix/hohmann-flyby-rendezvous
Nov 22, 2026
Merged

sarbian merged 1 commit into
devfrom
fix/hohmann-flyby-rendezvous

Conversation

@sarbian

@sarbian sarbian commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Fixes #2788.

The Hohmann transfer's one-burn mode ("Flyby / Impact" for a body, "Intercept" for a vessel) could make a node that reaches the target's orbit without meeting the target. Whether it met the target depended on when it was planned.

Cause

OperationGeneric.MakeNodesImpl passed Capture && !MatchOrbit as rendezvous, which is false whenever Capture is off. TwoImpulseTransfer then leaves the arrival point along the target's orbit free. With capture: false the cost is the first burn alone, which doesn't depend on that point, so the result came down to which of the two starting guesses (offset 0 or half the target's period) won. This came in with 298b15a ("Hohmann transfer UX overhaul"); 2.15.3.0 has it, 2.15.4.0 doesn't.

Fix

"Match orbit" and "Arrival delay" only apply to the two-burn transfer, so in the one-burn mode they are ignored: matchOrbit = Capture && MatchOrbit, rendezvous = !matchOrbit, and the arrival delay is used only when Capture && !matchOrbit. The issue's suggested !MatchOrbit alone isn't enough: the window only hides "Match orbit" in the one-burn mode, so a box left ticked from the transfer mode (or set through kOS) would still free the arrival point. The flyby aims at the target's centre, as in 2.15.4.0.

Test

In KSP: Kerbal X in a 147 km equatorial orbit (3.2x system), Mun as target, the operation planned "at the optimum time" from 12 start times spread over one synodic period, and each burn placed as a node and checked for a Mun encounter.

Setting dev this branch
Flyby 6/12 meet the Mun; the other 6 pass 37,700 km from it 12/12
Flyby, "Match orbit" and a 600 s arrival delay left on 6/12 12/12
Transfer (control) 12/12 12/12

No MechJeb exceptions in either run.

…again

With Capture off, the rendezvous argument was false, so the arrival point was free along the
target's orbit and, with only the first burn in the cost, the node could reach the target's
orbit without meeting the target (#2788). Match orbit and Arrival delay only apply to the
two-burn transfer, so they are ignored in the one-burn mode, even when left set from it.
@github-actions

Copy link
Copy Markdown
Contributor

✅ Build Artifact 🚀

MechJeb2-486505d.zip (built from 4060cca)

@sarbian
sarbian merged commit 34c11a5 into dev Nov 22, 2026
3 checks passed
@sarbian
sarbian deleted the fix/hohmann-flyby-rendezvous branch November 22, 2026 00:39
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.

Hohmann transfer "Flyby / Impact" can make a node that misses the target

1 participant