From 826df45ff214e6649d0f2482ecef2aa83a276ad9 Mon Sep 17 00:00:00 2001 From: annabunches Date: Sun, 1 Aug 2021 22:30:07 -0400 Subject: [PATCH] Fix boot and launch scripts. --- boot/rocket.ks | 2 +- boot/rocket_debug.ks | 3 ++- rocket/launch.ks | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/boot/rocket.ks b/boot/rocket.ks index f610227..1a69918 100644 --- a/boot/rocket.ks +++ b/boot/rocket.ks @@ -9,9 +9,9 @@ copypath("0:/lib/ui", "1:/lib/ui"). compile "0:/lib/navigation" to "1:/lib/navigation". compile "0:/lib/throttle" to "1:/lib/throttle". compile "0:/lib/stabilize_rocket" to "1:/lib/stabilize_rocket". +compile "0:/lib/node" to "1:/lib/node". compile "0:/init/rocket" to "1:/init". compile "0:/rocket/launch" to "1:/launch". -copypath("0:/rocket/execnode", "1:/execnode"). // Set OS to boot and restart. set core:bootfilename to "/init". diff --git a/boot/rocket_debug.ks b/boot/rocket_debug.ks index e81e02c..c7592ad 100644 --- a/boot/rocket_debug.ks +++ b/boot/rocket_debug.ks @@ -1,10 +1,11 @@ // Install software. copypath("0:/lib/navigation", "1:/lib/navigation"). copypath("0:/lib/throttle", "1:/lib/throttle"). +copypath("0:/lib/node", "1:/lib/node"). +copypath("0:/lib/ui", "1:/lib/ui"). copypath("0:/lib/stabilize_rocket", "1:/lib/stabilize_rocket"). copypath("0:/init/rocket", "1:/init"). copypath("0:/rocket/launch", "1:/launch"). -copypath("0:/rocket/execnode", "1:/execnode"). CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal"). run "1:/init". diff --git a/rocket/launch.ks b/rocket/launch.ks index 5221f64..ff41afd 100644 --- a/rocket/launch.ks +++ b/rocket/launch.ks @@ -1,5 +1,6 @@ runoncepath("lib/throttle"). runoncepath("lib/navigation"). +runoncepath("lib/node"). parameter APOAPSIS_TARGET is 80000. parameter GRAVITY_TURN_START is 8000. @@ -61,7 +62,7 @@ wait 0.001. // make sure these control updates get applied print "Target apoapsis acquired. Creating maneuver node.". add CreateCircularizationNode(). -runpath("/execnode"). +ExecNode(). print "Orbit acquired. Releasing controls. Good luck, Kerman.". unlock THROTTLE. unlock STEERING.