Improvements to launchpad and rocket code.

This commit is contained in:
2021-09-29 03:00:57 -04:00
parent 6830f23613
commit c50e43ba80
3 changed files with 23 additions and 5 deletions

View File

@ -102,6 +102,9 @@ function BurnTime {
local lastStage is false.
// We allow a small tolerance to deal with potential floating point errors.
until totaldV <= 0.001 {
if s < 0 {
print "Ran out of fuel with " + totaldV + " dV remaining".
}
local F is stageThrust(s).
local Isp is stageISP(s).
local m is stageMass(s).