robot debug

This commit is contained in:
Redo 2022-10-28 16:10:10 -06:00
parent c9e8a46743
commit 96b1015e53

View File

@ -18,6 +18,7 @@ end
return function(gate)
print("robot update")
if not gate.waiting then
print("not waiting")
local action = ""
if Gate.getportstate(gate, 7)~=0 then -- remove brick
action = action.."R\t"
@ -62,5 +63,7 @@ return function(gate)
Gate.cb(gate, action:sub(1, #action-1))
gate.waiting = true
end
else
print("waiting")
end
end