test
This commit is contained in:
parent
80e660f3ab
commit
85703b41e3
@ -1,6 +1,8 @@
|
||||
local M = {}
|
||||
|
||||
local logger = require("libs.logger")
|
||||
local tutil = require("libs.turtleutils")
|
||||
|
||||
local currentStatus = "idle"
|
||||
|
||||
function M.getStatus()
|
||||
@ -12,14 +14,14 @@ function M.run()
|
||||
currentStatus = "moving backward"
|
||||
logger.log("Started moving backward")
|
||||
for i = 1, 10 do
|
||||
turtle.back()
|
||||
tutil.back()
|
||||
sleep(0.5)
|
||||
end
|
||||
|
||||
currentStatus = "moving forward"
|
||||
logger.log("Started moving forward")
|
||||
for i = 1, 10 do
|
||||
turtle.forward()
|
||||
tutil.forward()
|
||||
sleep(0.5)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user