Add inter-processor signalling to automate entire launch process.

This commit is contained in:
Anna Rose Wiggins 2021-08-29 04:05:56 -04:00
parent 6be96ebf8a
commit 9623a4a869
2 changed files with 49 additions and 6 deletions

View file

@ -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 {