Hi. I need help with gos locate.
I run this code:
shell.run("gps","locate")
But it gives me a load of clutter like computer 3 is at whatsoever.
I just want to find the x y z, how can I do this?
GPS Locate help
Started by YaYaBinks3, Jul 27 2012 05:56 PM
2 replies to this topic
#1
Posted 27 July 2012 - 05:56 PM
#2
Posted 27 July 2012 - 06:29 PM
YaYaBinks3, on 27 July 2012 - 05:56 PM, said:
Hi. I need help with gos locate.
I run this code:
shell.run("gps","locate")
But it gives me a load of clutter like computer 3 is at whatsoever.
I just want to find the x y z, how can I do this?
I run this code:
shell.run("gps","locate")
But it gives me a load of clutter like computer 3 is at whatsoever.
I just want to find the x y z, how can I do this?
#3
Posted 27 July 2012 - 06:51 PM
Okay, so if you are trying to find the x, y, and z, you don't use the program gps, but rather the GPS API.
For the sake of simplicity, I will give you the code for this. However, you should go to the wiki and look it up yourself as well.
For the sake of simplicity, I will give you the code for this. However, you should go to the wiki and look it up yourself as well.
x, y, z = gps.locate(5)
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











