Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- local xPos, yPos, zPos = gps.locate()
- function updateLocation()
- GPS = {}
- local x,y,z = gps.locate()
- GPS.x = x
- GPS.y = y
- GPS.z = z
- rednet.broadcast(GPS)
- end
- function calibrate() --updates your gps position
- while true do
- updateLocation()
- os.sleep(5)
- end
- end
- textutils.slowPrint("calibrating....")
- calibrate()
Advertisement
Add Comment
Please, Sign In to add comment