summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-04 00:02:04 +0100
committerubq323 <ubq323@ubq323.website>2024-04-04 00:02:04 +0100
commit5cca86a728b8421589a120e41e40f6fc541a73c8 (patch)
tree9a06362dc9e1ba3ebea2bd4918ca2163a239f87f
parent63fa89d70fdd8130e7eaf3fb9a21865d3faa6f8d (diff)
launch cactus
-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)