1 posts
Posted 18 September 2012 - 07:33 AM
Could someone create or point me to a nice tutorial on how to get started with the GPS API? How to set everything up and a simple usage example. Would be nice if this was added to the wiki as well :)/>/>
1111 posts
Location
Portland OR
Posted 18 September 2012 - 07:35 AM
The GPS API is pretty small. It is on the wiki located in the API's section with the rest of the API's.
http://computercraft...e=Gps_%28API%29You will want a line in your code to get the coordinates. It should look something like
local x, y, z = gps.locate()
Make sure you have 4 host setup within range of the turtle you're trying to use GPS with.
You will want to run the GPS program on them. Type "help gps" from a terminal for information on launching your host.
More info on the wiki here…
http://computercraft.info/wiki/index.php?title=Gps_%28program%29
16 posts
Posted 18 September 2012 - 03:53 PM
Sort of Meta note: the forum search doesn't help this issue. "GPS" is too short a string to search on.
3790 posts
Location
Lincoln, Nebraska
Posted 18 September 2012 - 04:38 PM
Indeed. The forum should allow the search of certain acronyms, since they are wideley used. Perhaps a suggestion to the Moderators to fix this?
8543 posts
Posted 18 September 2012 - 07:59 PM
"GPS " usually works fairly well. Try using that string.
3790 posts
Location
Lincoln, Nebraska
Posted 18 September 2012 - 08:02 PM
You mean adding a space after GPS?
8543 posts
Posted 19 September 2012 - 12:59 AM
Yeah, that was the suggestion given by Cloudy a while ago. It seems to not work, though.