robot debug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user