Fuzz up execnode logic for more consistent execution.
This commit is contained in:
@ -36,8 +36,11 @@ function BurnTime {
|
||||
// Docs suggest DeltaV:DURATION is not entirely reliable, however.
|
||||
// For now we're logging both values for comparison.
|
||||
local t is burnTimeCalc(dVs, m, Isp, f).
|
||||
|
||||
// debug
|
||||
print "Computed stage burn time = " + t.
|
||||
print "KSC-estimated stage burn time = " + SHIP:StageDeltaV(s):DURATION.
|
||||
// end debug
|
||||
|
||||
local parts is list().
|
||||
for part in parts {
|
||||
@ -49,7 +52,12 @@ function BurnTime {
|
||||
return t + BurnTime(dV - SHIP:STAGEDELTAV(s):VACUUM, m, s - 1).
|
||||
}
|
||||
|
||||
return burnTimeCalc(dV, m, Isp, f).
|
||||
// debug
|
||||
local t is burnTimeCalc(dV, m, Isp, f).
|
||||
print "Burn time in last utilized stage = " + t.
|
||||
// end debug
|
||||
|
||||
return t.
|
||||
}
|
||||
|
||||
// Convenience function to wrap the actual calculation for burn time.
|
||||
|
Reference in New Issue
Block a user