commit cc813454ac7890986039744d9b977c9db9777bf2 Author: D4VID Date: Wed Dec 25 19:52:34 2024 +0100 Basic drone program diff --git a/drone.lua b/drone.lua new file mode 100644 index 0000000..78b5b66 --- /dev/null +++ b/drone.lua @@ -0,0 +1,15 @@ +local drone = component.proxy(component.list("drone")()) + +local function fly(dx, dy, dz) + drone.move(dx, dy, dz) + + while drone.getOffset() > 1 do + computer.pullSignal(0.1) + end +end +while true do + fly(0,2,0) + fly(10,0,0) + fly(-10,0,0) + fly(0,-2,0) +end