test
This commit is contained in:
+4
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user