Skip to content

PSG: the automatic Cd and Aref leave out launch towers - #2795

Merged
lamont-granquist merged 3 commits into
devfrom
psg/aero-launch-tower
Nov 23, 2026
Merged

lamont-granquist merged 3 commits into
devfrom
psg/aero-launch-tower

Conversation

@sarbian

@sarbian sarbian commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

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 PSGAeroEstimate only:

  • What is dropped by the time the launch clamps release is left out, with the existing Dropped().
  • With such parts on the pad and FAR, the estimate is the rocket's widest part (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:

Drag area dev this branch
FAR, reported craft, on the pad 571 m², no solution 12.5 m², solves
FAR, reported craft, MET 5 s no solution to fly 21.2 m², FAR's own
FAR, Titan II on ordinary clamps 3.38 m² 3.34 m² (FAR varies up to 2 % between runs)
stock, Kerbal X with a tank on a clamp 16.98 m² 7.96 m² (the same as without the tank)
stock, the same after release 16.98 m² 7.96 m²

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

  • The pad estimate doesn't count side boosters.
  • With the vessel's root on the pad's side, or a clamp staged after the rocket's own stages, the rocket itself reads as left on the pad. Not tested.
  • An orbit with the reported craft is not verified: the test copy, with substituted parts, misses it on dev without the tower too.

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.
@lamont-granquist

Copy link
Copy Markdown
Collaborator

That would explain why the massive Saturn MLP launch complex causes issues because it tries to launch that brick

@github-actions

Copy link
Copy Markdown
Contributor

✅ Build Artifact 🚀

MechJeb2-ead05d4.zip (built from 5b5e1e0)

@lamont-granquist
lamont-granquist merged commit 9be14a3 into dev Nov 23, 2026
3 checks passed
@lamont-granquist
lamont-granquist deleted the psg/aero-launch-tower branch November 23, 2026 05:08
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.

2 participants