robot debug

This commit is contained in:
Redo
2022-10-28 15:53:09 -06:00
parent d768193275
commit b463fd3dfe
5 changed files with 27 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ local function rotateVector(vec, rot)
end
return function(gate)
print("robot update")
if not gate.waiting then
local action = ""
if Gate.getportstate(gate, 7)~=0 then -- remove brick
@@ -56,6 +57,8 @@ return function(gate)
end
if action~="" then
print("robot action")
print(action)
Gate.cb(gate, action:sub(1, #action-1))
gate.waiting = true
end