View Single Post
Old September 22nd, 2010, 11:24 PM   #10 (permalink)
Senior Member
UncleMike's Avatar
Join Date: Nov 2009
Location: Central NJ
Posts: 2,122
Device(s): Moto X - GSM DE
Carrier: Not Provided

Thanks: 59
Thanked 391 Times in 324 Posts

Originally Posted by SlimJimE View Post
Can you explain what %LOCTMS Context does? I know the varable is the time from last fix but not sure why it would wait until there is a current fix? Is the Variable Set [Name: %CARLOC] [Value: %LOC] needed?
The %LOCTMS variable is the time of the last fix, as you said. The WaitForGPSfix profile waits for that time to be updated, indicating that a fix has just been obtained, and then records the current location in %CARLOC so that future fixes don't cause that value to get lost.

With the default settings in Tasker, if your device has been asleep for a while, the position stored in %LOC could be up to 10 minutes old if you have a GPS-based profile enabled, or even older if no profiles are using GPS. When you wake up the device, it will immediately try to get a fix if any GPS-based profiles are enabled, so the wait normally won't be long, but if you just grab the current value of %LOC without making sure the information is recent, your location could be way off.
UncleMike is offline  
Reply With Quote