proxy apis over wireless

This commit is contained in:
kepler155c@gmail.com
2017-10-24 23:01:40 -04:00
parent 84b2b8ce63
commit 7fd93e8a8b
7 changed files with 63 additions and 13 deletions

View File

@@ -53,6 +53,7 @@ function turtle.resetState()
state.moveCallback = noop
Pathing.reset()
turtle.abort = false
return true
end
@@ -60,7 +61,7 @@ function turtle.reset()
turtle.point.x = 0
turtle.point.y = 0
turtle.point.z = 0
turtle.point.heading = 0
turtle.point.heading = 0 -- should be facing
turtle.point.gps = false
turtle.abort = false -- should be part of state
--turtle.status = 'idle' -- should be part of state
@@ -961,10 +962,10 @@ function turtle.run(fn, ...)
end
function turtle.abortAction()
if turtle.status ~= 'idle' then
--if turtle.status ~= 'idle' then
turtle.abort = true
os.queueEvent('turtle_abort')
end
--end
end
-- [[ Pathing ]] --