Repository navigation
Conversation
…lanned end and its planned angular momentum AscentStateMachine cut the burn before a coast (CoastDue) and a burn dropped before a fixed upper stack (JettisonDue) at their planned end MET, whatever the vessel had reached. A burn behind its plan (an engine short of thrust, a booster below it that burned late) was cut with propellant it still needed, and PSGSimulation pauses solving for the last PreStageTime of a phase, so no re-solve could move the end. A late fixed booster also let JETTISON stage through the cut stage above it, down to dropping it unlit. Both cuts now wait for the vessel's angular momentum at the next tick to reach the plan's at that time (within 1e-5, the rule of #2747), and JETTISON only cuts in the burn's own KSP stage. A burn on or ahead of its plan is cut on the clock as before; one behind burns on until it gets there or is spent. Tests: ReviewRegressionTests (F6 cases), failing on dev ef54081.
Collaborator
|
yeah, i don't want to do this one yet. |
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.
AscentStateMachine cut the burn before a coast (
CoastDue) and a burn dropped before a fixed upper stack (JettisonDue) at their planned end MET. A burn behind its plan was cut with propellant it still needed, and PSGSimulation pauses solving for the lastPreStageTime(10 s) of a phase, so no re-solve could move the end. A late fixed booster also let JETTISON stage straight through the cut stage above it.Both cuts now wait for the angular momentum at the next tick to reach the plan's at that time (within 1e-5, the rule of the closed #2747), and JETTISON cuts only in the burn's own KSP stage. A burn on or ahead of its plan is cut on the clock as before.
Adds the F6 cases of
ReviewRegressionTests(they 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)