Add inter-processor signalling to automate entire launch process.
This commit is contained in:
parent
6be96ebf8a
commit
9623a4a869
2 changed files with 49 additions and 6 deletions
|
@ -172,6 +172,25 @@ MakeMenu(
|
|||
).
|
||||
|
||||
iface:show().
|
||||
|
||||
until SHIP:STATUS <> "PRELAUNCH" {
|
||||
if not CORE:MESSAGES:EMPTY {
|
||||
local msg is CORE:MESSAGES:Pop().
|
||||
local data is msg:CONTENT.
|
||||
if data["command"] = "launch" {
|
||||
Launch(
|
||||
80000,
|
||||
2.0,
|
||||
5.0,
|
||||
data["angle"],
|
||||
data["time"],
|
||||
true
|
||||
).
|
||||
}
|
||||
}
|
||||
wait 0.001.
|
||||
}
|
||||
|
||||
wait until false.
|
||||
|
||||
function refreshSensors {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue