This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Valansch's profile picture

Problem with gps.locate(timeout,debug)

Started by Valansch, 03 January 2013 - 12:25 AM
Valansch #1
Posted 03 January 2013 - 01:25 AM
Hello,
I simply wanted to locate my position inside a program with gps.locate(timeout,debug), but it just won't do it. Whenever i try it says Could not determine position.
The program "gps locate" works just fine.
Here is a screenshot to prove that the GPS network is setup properly:



Any clues?
theoriginalbit #2
Posted 03 January 2013 - 01:44 AM
you have to have a modem active to use gps.locate … I stumbled into this issue ALL the time! always forgot to do it lol

EDIT: Running the program gps opens the modem if one isn't already, using the API doesn't.
Valansch #3
Posted 03 January 2013 - 01:54 AM
It works, thank you :)/>