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
|
@ -25,17 +25,7 @@ local rows is list(MakeRow(top), MakeRow(top), MakeRow(top)).
|
|||
local stk is iface:AddStack().
|
||||
|
||||
// Buttons and menus.
|
||||
local btn is rows[0]: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").
|
||||
}
|
||||
}.
|
||||
AddStockButtons(rows[0], "rocket").
|
||||
|
||||
MakeMenu(
|
||||
stk,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue