Skip to content

PSG: a burn cut with propellant left is flown however short - #2786

Draft
sarbian wants to merge 1 commit into
devfrom
fix/psg-keep-short-cut-burn
Draft

sarbian wants to merge 1 commit into
devfrom
fix/psg-keep-short-cut-burn

Conversation

@sarbian

@sarbian sarbian commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

AnalyzeStages (#2777) skipped any burn shorter than SKIP_TIME before the last stage, including one the optimizer cuts with propellant left: guidance flew the next burn's steering on it and nothing staged it off. Such a burn is now flown so guidance cuts and jettisons it; the burn before a coast-during, shrunk with the coast, is still skipped.

Adds ShortCutBurnIsFlown (AnalyzeStages, fails on dev) and SkippedCutBoosterIsNotBurnedOut (guidance cuts and jettisons the short burn). AscentFlight, which builds the test Solutions itself, now sets Skip with the same rule. Rebased on dev 92bfb8f.

Tested: full MechJebLibTest suite in Release (17983 passed, MainSailTinCan excluded as in CI).
Not tested: in game.

From the review of #2776 and #2777: #2776 (comment)

AnalyzeStages (#2777) skipped any burn before the last stage shorter than SKIP_TIME, including one the optimizer cuts with propellant left. Guidance then flew the next burn's steering and throttle on it, and nothing cut or staged it off (autostaging won't drop an engine with propellant left), so it burned out. Such a burn is now flown, so that guidance cuts and jettisons it. The burn before a coast-during, which the zero coast constraint shrinks with the coast, is still skipped.

AscentFlight, which builds the test Solutions itself, sets Skip with the same rule.

Tests: ShortCutBurnIsFlown (AnalyzeStages, failing on dev) and SkippedCutBoosterIsNotBurnedOut (guidance cuts the short burn).
@sarbian
sarbian force-pushed the fix/psg-keep-short-cut-burn branch from 570ae51 to b5e8a0f Compare November 29, 2026 09:29
@github-actions

Copy link
Copy Markdown
Contributor

✅ Build Artifact 🚀

MechJeb2-f88999c.zip (built from b5e8a0f)

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.

1 participant