HUD overhaul.
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user