Skip to content

Skip zero-length coast/burn phases in the Solution - #2777

Merged
lamont-granquist merged 1 commit into
devfrom
lcg/psg-new-state-machine
Nov 19, 2026
Merged

lamont-granquist merged 1 commit into
devfrom
lcg/psg-new-state-machine

Conversation

@lamont-granquist

Copy link
Copy Markdown
Collaborator

The SolutionBuilder marks them as Skip, and the Solution skips over them, then the AscentStateMachine requires less logic.

The zero length phases still display in the UI so the user can see that they're "there" but just shrunk to zero.

The SolutionBuilder marks them as Skip, and the Solution skips over
them, then the AscentStateMachine requires less logic.

The zero length phases still display in the UI so the user can see
that they're "there" but just shrunk to zero.
@github-actions

Copy link
Copy Markdown
Contributor

✅ Build Artifact 🚀

MechJeb2-aff65e6.zip (built from 29b5c7e)

@lamont-granquist
lamont-granquist merged commit ef54081 into dev Nov 19, 2026
3 checks passed
@lamont-granquist
lamont-granquist deleted the lcg/psg-new-state-machine branch November 19, 2026 05:55
sarbian added a commit that referenced this pull request Nov 29, 2026
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).
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