GPS API

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 at least 4 computers used as gps hosts which will respond and allow trilateration. You can set up hosts using the gps program.

Note: When entering in the coordinates for the host you need to put in the x,y,z of the modem, not the computer.