Improvements to launchpad and rocket code.
This commit is contained in:
parent
6830f23613
commit
c50e43ba80
3 changed files with 23 additions and 5 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue