Gps (API)
From ComputerCraft Wiki
The gps API provides a method for turtles and computers to retrieve their own locations.
It broadcasts a PING message over rednet and wait for responses. In order for this system to work, there must be computers used as gps hosts which will respond and allow triangulation. You can set up hosts using the gps program.
Method name | Description |
---|---|
gps.locate(timeout, debug) | Tries to retrieve the computer or turtle own location. @param timeout the amount of time, in seconds, to wait for a rednet response |