summaryrefslogtreecommitdiff
path: root/cactus.lua
diff options
context:
space:
mode:
Diffstat (limited to 'cactus.lua')
-rw-r--r--cactus.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/cactus.lua b/cactus.lua
index 8e0e887..b5624d9 100644
--- a/cactus.lua
+++ b/cactus.lua
@@ -19,7 +19,7 @@ assert(ensure_modem())
local POS = vector.new(gps.locate())
local function get_facing()
- while turtle.detect() turtle.turnRight() end
+ while turtle.detect() do turtle.turnRight() end
turtle.forward()
local newpos = vector.new(gps.locate())
turtle.back()
@@ -48,10 +48,9 @@ for i=1,4 do print(i,rotatev(v,i)) end
local function moveby_xz(dv)
-- y component of dv is ignored
+end
local datum = vector.new(-18, 128, -1837)
-local dx = w-datum
-moveBy(dx)