Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("t")
- data={}
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("RC Turtle")
- id, message = rednet.receive("remote")
- if message=="up" then
- t.up()
- elseif message=="down" then
- t.down()
- elseif message=="forward" then
- t.forward()
- elseif message=="back" then
- t.back()
- elseif message=="sLeft" then
- t.strafeLeft()
- elseif message=="sRight" then
- t.strafeRight()
- end
- --Send info to Remote
- data[1], data[2], data[3] = gps.locate()
- data[4] = os.getComputerLabel()
- data[5] = turtle.getFuelLevel()
- rednet.send(id, data,"gps")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement