Repository navigation
PSG: the automatic Cd and Aref leave out launch towers - #2795
Merged
Merged
Conversation
The automatic Cd and Aref counted a launch tower as part of the rocket: only parts with a LaunchClamp module were skipped, and in stock aerodynamics only. With a Modular Launch Pads tower PSG planned with 571 m2 of drag area instead of 19 and found no ascent. The figure also stayed after liftoff. Stock aerodynamics now leaves out every part dropped by the time the clamps release. FAR only knows the whole vessel, so while such parts are on it the estimate is the rocket's frontal area at Cd 0.5, and FAR is read once it has rebuilt the vessel's shape without them.
…elper classes The release stage is all it takes: stock leaves out what is dropped by then, and FAR is read at MET 5 s.
…ir, one branch less
Collaborator
|
That would explain why the massive Saturn MLP launch complex causes issues because it tries to launch that brick |
Contributor
✅ Build Artifact 🚀MechJeb2-ead05d4.zip (built from 5b5e1e0) |
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.
Part of #2476 (audit epic, PSG)
With a launch tower on the pad (Modular Launch Pads, for example), PSG finds no ascent: "The rocket falls back to the ground even flying almost straight up".
Cause. "Cd and Aref from the vessel" (#2742, #2749) counts the tower as rocket. FAR only knows the whole vessel, the stock branch skipped only the clamp part, and the pad's figure stays once airborne.
Fix, in
PSGAeroEstimateonly:Dropped().DragCubeList.GetCubeAreaDir) at Cd 0.5, then FAR is read once at MET 5 s. FAR needs under a second to drop the tower from the vessel's shape.Tested on macOS, development player, Debug:
Unit tests: 16,683 pass with CI filter (the fix touches nothing they compile). The FAR rows are from the head commit, 5b5e1e0. The stock rows are from an earlier commit of this branch with the same stock condition.
Limits