From 4060cca7c6bf580427dfde68922a2373bd86e10c Mon Sep 17 00:00:00 2001 From: Sarbian Date: Sun, 22 Nov 2026 01:27:59 +0100 Subject: [PATCH] Hohmann transfer: the one-burn flyby or intercept aims at the target 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. --- MechJeb2/Maneuver/OperationTransfer.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MechJeb2/Maneuver/OperationTransfer.cs b/MechJeb2/Maneuver/OperationTransfer.cs index 0945bbec6..f2eac46e6 100644 --- a/MechJeb2/Maneuver/OperationTransfer.cs +++ b/MechJeb2/Maneuver/OperationTransfer.cs @@ -60,7 +60,10 @@ protected override List MakeNodesImpl(Orbit o, double univer Orbit targetOrbit = target.TargetOrbit; - double lagTime = !MatchOrbit ? LagTime.Val : 0; + // "Match orbit" and "Arrival delay" belong to the two-burn transfer: the one-burn flyby or intercept always aims at the target, + // whatever they were left at + bool matchOrbit = Capture && MatchOrbit; + double lagTime = !matchOrbit && Capture ? LagTime.Val : 0; bool fixedTime = false; @@ -84,7 +87,7 @@ protected override List MakeNodesImpl(Orbit o, double univer } (Vector3d dV1, double ut1, Vector3d dV2, double ut2) = - OrbitalManeuverCalculator.DeltaVAndTimeForHohmannTransfer(o, targetOrbit, universalTime, lagTime, fixedTime, Coplanar, Capture && !MatchOrbit, + OrbitalManeuverCalculator.DeltaVAndTimeForHohmannTransfer(o, targetOrbit, universalTime, lagTime, fixedTime, Coplanar, !matchOrbit, Capture); // the arrival node only where the window offers it (its ViewUpdate clears PlanCapture elsewhere, and kOS has no window)