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 SkippedCutBoosterIsNotBurnedOut (failed on dev ef54081).

Not tested: compiled only (MechJebLibTest Release, or MechJeb2.sln Debug). No unit test or flight was run on this branch.

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.

Test: SkippedCutBoosterIsNotBurnedOut, failing on dev ef54081.
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