Repository navigation
Conversation
…st it A COAST_BEFORE coast shorter than SKIP_TIME (#2777) was never flown, so HasCoasted stayed false and PSGSimulation never marked the coast's flight plan stage done. Every later solve then started at that coast, ahead of the burning upper stage, and once one gave it SKIP_TIME or more, CurrentPhase(false) found no burn before it and CoastDue cut the burning stage for a coast and a relight. Once the vessel flies a burn after a skipped coast, guidance sets HasCoasted and sends COAST_ENDED, which cancels a solve started with the coast ahead and marks the coast done. Test: SkippedCoastBeforeComingBackDoesNotCutTheBurningStage, failing on dev ef54081.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A COAST_BEFORE coast shorter than
SKIP_TIME(#2777) was never flown, soHasCoastedstayed false and the coast's flight plan stage was never marked done. Later solves started at that coast, and once one gave itSKIP_TIMEor more,CoastDuecut the burning upper stage for a coast and a relight. Guidance now setsHasCoastedand sends COAST_ENDED once the vessel flies a burn after a skipped coast.Adds
SkippedCoastBeforeComingBackDoesNotCutTheBurningStage(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)