Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not rednet.isOpen() then
- rednet.open("back")
- end
- while true do
- s, m, p = rednet.receive("track")
- if m == "getPos" then
- x,y,z = gps.locate()
- rednet.send(s,{ x = x, y = y, z = z}, "track")
- print("send "..x.." "..y.." "..z.." to "..s)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment