Add aircraft automation code, including flap control and stable autopilot flight.
This commit is contained in:
parent
a99912e3ae
commit
376629354b
9 changed files with 204 additions and 19 deletions
22
lib/ui.ks
22
lib/ui.ks
|
@ -53,3 +53,25 @@ function MakeMenu {
|
|||
set top:AddButton(execLabel):onClick to callback:Bind(optionList).
|
||||
}
|
||||
}
|
||||
|
||||
function AddStockButtons {
|
||||
parameter row.
|
||||
parameter bootname.
|
||||
|
||||
local btn is row:AddButton("Term").
|
||||
set btn:TOGGLE to true.
|
||||
set btn:ONTOGGLE to {
|
||||
parameter d.
|
||||
|
||||
if d {
|
||||
CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Open Terminal").
|
||||
} else {
|
||||
CORE:PART:GETMODULE("kOSProcessor"):DOEVENT("Close Terminal").
|
||||
}
|
||||
}.
|
||||
|
||||
MakeButton(row, "Update", {
|
||||
switch to 0.
|
||||
run reinstall(bootname).
|
||||
}).
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue