HUD overhaul.

This commit is contained in:
2026-05-03 04:14:03 -04:00
parent 1895386fdf
commit 73868e47db
27 changed files with 397 additions and 178 deletions
+2 -23
View File
@@ -1,26 +1,5 @@
import("library/lib_vessel_utils").
import("library/lib_ascent").
CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal").
print "Waiting for Engine start".
WaitForEngineStart().
function printStatge {
parameter s is ship:stagenum.
local curDv is ship:STAGEDELTAV(s):current.
local isp is GetIspForStage(s).
local smass is GetMassOfStage(s).
local flow is GetMaxMassFlowForStage(s).
local thrust is GetThrustOfStage(s).
print "------ Stage: " + s + " ------".
print "Thrust: " + thrust + "kN Mass: " + round(smass, 3) + "t".
print "DV: " + round(curDv, 2) + "m/s ISP: " + round(isp, 2) + "s Flow: " + round(flow, 4) + "Mg/s".
print "Burn Duration: " + round(CalculateBurnDuration(curDv, isp, smass, flow), 2).
}
// printStatge(ship:stagenum).
// printStatge(ship:stagenum - 1).
print "Total Burn Time: " + CalculateMultiStageBurnDuration(ship:deltav:current).
Ascent(95000, 1000, 0.7, 3).