diff options
author | ubq323 <ubq323@ubq323.website> | 2024-04-04 00:02:04 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-04-04 00:02:04 +0100 |
commit | 5cca86a728b8421589a120e41e40f6fc541a73c8 (patch) | |
tree | 9a06362dc9e1ba3ebea2bd4918ca2163a239f87f | |
parent | 63fa89d70fdd8130e7eaf3fb9a21865d3faa6f8d (diff) |
launch cactus
-rw-r--r-- | cactus.lua | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) |