Haruchai

sample find

Feb 1st, 2015
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. You're going to have to write a program that has something like the following in it:
  2. rednet.open("right")
  3. local id, message = rednet.receive() --Wait for a message to be sent to the turtle so you have time to set up the gps servers and such
  4. local x,y,z = gps.locate()
  5. rednet.send(id, "I am at: "..x..","..y..","..z)
  6.  
  7. For the computer, have a program that does this:
  8. rednet.open("top")--Or whatever side your computer has the modem on
  9. rednet.broadcast(" ")
  10. local id, message = rednet.receive()
  11. print(message)
Advertisement
Add Comment
Please, Sign In to add comment