From 121581f227a62e4682f299633ecb3ccb22046f4a Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Fri, 8 Feb 2019 18:45:13 +0100 Subject: [PATCH] Don't stage too quickly. --- boot/default.ks | 6 +++--- launch.ks | 1 + lib/rocket.ks | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/boot/default.ks b/boot/default.ks index 035496d..5bea42b 100644 --- a/boot/default.ks +++ b/boot/default.ks @@ -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 { diff --git a/launch.ks b/launch.ks index f1e3c16..444ebc6 100644 --- a/launch.ks +++ b/launch.ks @@ -60,6 +60,7 @@ function launch { // Enable auto-staging when should_stage() then { stage_when_ready(). + wait 0.5. return true. // preserve trigger } diff --git a/lib/rocket.ks b/lib/rocket.ks index 328726f..b0fa086 100644 --- a/lib/rocket.ks +++ b/lib/rocket.ks @@ -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) }