Don't stage too quickly.
This commit is contained in:
parent
b93d229ff5
commit
121581f227
3 changed files with 6 additions and 5 deletions
|
@ -8,9 +8,9 @@ set TERMINAL:width to 50.
|
|||
set TERMINAL:height to 30.
|
||||
CORE:doaction("Open Terminal", true).
|
||||
|
||||
print "=================== BOOTING ===================".
|
||||
print "==================== BOOTING =====================".
|
||||
wait until SHIP:loaded and SHIP:unpacked.
|
||||
wait 0.001.
|
||||
wait 0.001. // wait one physics tick
|
||||
|
||||
if HOMECONNECTION:isconnected {
|
||||
copy_scripts().
|
||||
|
@ -18,7 +18,7 @@ if HOMECONNECTION:isconnected {
|
|||
print "No connection to KSC: not updating scripts.".
|
||||
}
|
||||
|
||||
print "=========== BOOT SEQUENCE COMPLETE ============".
|
||||
print "============= BOOT SEQUENCE COMPLETE =============".
|
||||
|
||||
|
||||
function copy_scripts {
|
||||
|
|
|
@ -60,6 +60,7 @@ function launch {
|
|||
// Enable auto-staging
|
||||
when should_stage() then {
|
||||
stage_when_ready().
|
||||
wait 0.5.
|
||||
return true. // preserve trigger
|
||||
}
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@ function should_stage {
|
|||
// Return true if the rocket needs to stage.
|
||||
//
|
||||
return STATUS = "PRELAUNCH" // e.g. still attached to launch tower
|
||||
or any_flameout() // any engine starved for fuel
|
||||
or SHIP:maxthrustat(0) = 0. // no active engines (e.g. when we have an intermediate stage for decouplers before activating the next engine)
|
||||
or any_flameout() // any engine starved for fuel
|
||||
or SHIP:maxthrustat(0) = 0. // no active engines (e.g. when we have an intermediate stage for decouplers before activating the next engine)
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue