robot debug
This commit is contained in:
parent
c9e8a46743
commit
96b1015e53
@ -18,6 +18,7 @@ end
|
|||||||
return function(gate)
|
return function(gate)
|
||||||
print("robot update")
|
print("robot update")
|
||||||
if not gate.waiting then
|
if not gate.waiting then
|
||||||
|
print("not waiting")
|
||||||
local action = ""
|
local action = ""
|
||||||
if Gate.getportstate(gate, 7)~=0 then -- remove brick
|
if Gate.getportstate(gate, 7)~=0 then -- remove brick
|
||||||
action = action.."R\t"
|
action = action.."R\t"
|
||||||
@ -62,5 +63,7 @@ return function(gate)
|
|||||||
Gate.cb(gate, action:sub(1, #action-1))
|
Gate.cb(gate, action:sub(1, #action-1))
|
||||||
gate.waiting = true
|
gate.waiting = true
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
print("waiting")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user