Jump to content




GPS Locate help


  • You cannot reply to this topic
2 replies to this topic

#1 YaYaBinks3

  • Members
  • 6 posts

Posted 27 July 2012 - 05:56 PM

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?

#2 lieudusty

  • Members
  • 419 posts

Posted 27 July 2012 - 06:29 PM

View PostYaYaBinks3, 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?
First you need to set up GPS servers using gps host. After that you can use gps locate to find your location.

#3 OmegaVest

  • Members
  • 436 posts

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.

x, y, z = gps.locate(5)






3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users