Fix boot and launch scripts.

This commit is contained in:
Anna Rose 2021-08-01 22:30:07 -04:00
parent 70f71e184b
commit 826df45ff2
3 changed files with 5 additions and 3 deletions

View File

@ -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".

View File

@ -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".

View File

@ -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.