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 />
0
6 replies to this topic
#1
Posted 18 September 2012 - 06:33 AM
#2
Posted 18 September 2012 - 06: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%29
You will want a line in your code to get the coordinates. It should look something like
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...s_%28program%29
You 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...s_%28program%29
#3
Posted 18 September 2012 - 02:53 PM
Sort of Meta note: the forum search doesn't help this issue. "GPS" is too short a string to search on.
#4
Posted 18 September 2012 - 03: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?
#5
Posted 18 September 2012 - 06:59 PM
"GPS " usually works fairly well. Try using that string.
#6
Posted 18 September 2012 - 07:02 PM
You mean adding a space after GPS?
#7
Posted 18 September 2012 - 11:59 PM
Yeah, that was the suggestion given by Cloudy a while ago. It seems to not work, though.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users