Basic drone program

master
D4VID 9 months ago
commit cc813454ac

@ -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
Loading…
Cancel
Save