Fix boot and launch scripts.
This commit is contained in:
parent
70f71e184b
commit
826df45ff2
|
@ -9,9 +9,9 @@ copypath("0:/lib/ui", "1:/lib/ui").
|
||||||
compile "0:/lib/navigation" to "1:/lib/navigation".
|
compile "0:/lib/navigation" to "1:/lib/navigation".
|
||||||
compile "0:/lib/throttle" to "1:/lib/throttle".
|
compile "0:/lib/throttle" to "1:/lib/throttle".
|
||||||
compile "0:/lib/stabilize_rocket" to "1:/lib/stabilize_rocket".
|
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:/init/rocket" to "1:/init".
|
||||||
compile "0:/rocket/launch" to "1:/launch".
|
compile "0:/rocket/launch" to "1:/launch".
|
||||||
copypath("0:/rocket/execnode", "1:/execnode").
|
|
||||||
|
|
||||||
// Set OS to boot and restart.
|
// Set OS to boot and restart.
|
||||||
set core:bootfilename to "/init".
|
set core:bootfilename to "/init".
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
// Install software.
|
// Install software.
|
||||||
copypath("0:/lib/navigation", "1:/lib/navigation").
|
copypath("0:/lib/navigation", "1:/lib/navigation").
|
||||||
copypath("0:/lib/throttle", "1:/lib/throttle").
|
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:/lib/stabilize_rocket", "1:/lib/stabilize_rocket").
|
||||||
copypath("0:/init/rocket", "1:/init").
|
copypath("0:/init/rocket", "1:/init").
|
||||||
copypath("0:/rocket/launch", "1:/launch").
|
copypath("0:/rocket/launch", "1:/launch").
|
||||||
copypath("0:/rocket/execnode", "1:/execnode").
|
|
||||||
|
|
||||||
CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal").
|
CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal").
|
||||||
run "1:/init".
|
run "1:/init".
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
runoncepath("lib/throttle").
|
runoncepath("lib/throttle").
|
||||||
runoncepath("lib/navigation").
|
runoncepath("lib/navigation").
|
||||||
|
runoncepath("lib/node").
|
||||||
|
|
||||||
parameter APOAPSIS_TARGET is 80000.
|
parameter APOAPSIS_TARGET is 80000.
|
||||||
parameter GRAVITY_TURN_START is 8000.
|
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.".
|
print "Target apoapsis acquired. Creating maneuver node.".
|
||||||
add CreateCircularizationNode().
|
add CreateCircularizationNode().
|
||||||
runpath("/execnode").
|
ExecNode().
|
||||||
print "Orbit acquired. Releasing controls. Good luck, Kerman.".
|
print "Orbit acquired. Releasing controls. Good luck, Kerman.".
|
||||||
unlock THROTTLE.
|
unlock THROTTLE.
|
||||||
unlock STEERING.
|
unlock STEERING.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user