From 5cca86a728b8421589a120e41e40f6fc541a73c8 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 4 Apr 2024 00:02:04 +0100 Subject: launch cactus --- cactus.lua | 5 ++--- 1 file 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) -- cgit v1.2.3