Move launch script to a library.
This commit is contained in:
parent
b4ac0b0325
commit
981ce4e7f9
4 changed files with 77 additions and 73 deletions
|
@ -1,10 +1,11 @@
|
|||
@lazyglobal off.
|
||||
|
||||
runoncepath("/lib/ui").
|
||||
runoncepath("/lib/navigation").
|
||||
runoncepath("/lib/throttle").
|
||||
runoncepath("/lib/node").
|
||||
runoncepath("/lib/stabilize_rocket").
|
||||
runoncepath("/lib/ui").
|
||||
runoncepath("/lib/launch_rocket").
|
||||
|
||||
clearguis().
|
||||
|
||||
|
@ -90,7 +91,7 @@ row:AddLabel("Gravity Turn Pitch").
|
|||
local gravPitch is row:AddTextField("75").
|
||||
|
||||
makeButton(top, "Execute", {
|
||||
run "/launch"(
|
||||
Launch(
|
||||
targetApo:TEXT:ToNumber(),
|
||||
gravTurnStart:TEXT:ToNumber(),
|
||||
gravPitch:TEXT:ToNumber(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue