This object is in archive! 
When Locus is started don't pan map to some new position before GPS signal has been acquired
Answered
I often find when I start up Locus inside (i.e. GPS signal will not be acquired) that the map is panned to some unknoqn place (possibly lat/lon = 0/0 although haven't checked) resulting in a blank display. Shouldn't the previous position be retained until a actual GPS position is acquired? What I have to do when this occurs is go to my list of points and move the map to one that I know is nearby, or do lots of zooming & panning.
I have the setting > GPS > Run at startup > Always
Good day Andrew,
and when you start Locus, centering (bottom left button) is enabled? Because if not, Locus should stay on a place where you left it during last close. If centering is enabled, Locus tries to get at least some location (based on wi-fi, cell-id) and center to this Locus. Please check next time if Locus really center to 0, 0. If so, this should only means that your device returns invalid location and Locus center on it. So simple check if location is non-zero, should solve this.
Good day Andrew,
and when you start Locus, centering (bottom left button) is enabled? Because if not, Locus should stay on a place where you left it during last close. If centering is enabled, Locus tries to get at least some location (based on wi-fi, cell-id) and center to this Locus. Please check next time if Locus really center to 0, 0. If so, this should only means that your device returns invalid location and Locus center on it. So simple check if location is non-zero, should solve this.
Thanks Menion. We are thinking along similar lines. I too think it is being moved to 0,0. I can't tell yet, I normally have the top/left panel (coordinate) hidden by other buttons that are of more use to me (to save space). It was happening to me every couple of days while cycle touring for the last 7 weeks overseas. I've just tried to reproduce back here now home, but of course, no luck yet. But surely whether centering button is enabled or not, if the GPS icon is orange i.e. has not yet acquired a signal, then the map should not be moved? If I do find the coordinate is 0,0 it may explain, but doesn't solve the problem.
Thanks Menion. We are thinking along similar lines. I too think it is being moved to 0,0. I can't tell yet, I normally have the top/left panel (coordinate) hidden by other buttons that are of more use to me (to save space). It was happening to me every couple of days while cycle touring for the last 7 weeks overseas. I've just tried to reproduce back here now home, but of course, no luck yet. But surely whether centering button is enabled or not, if the GPS icon is orange i.e. has not yet acquired a signal, then the map should not be moved? If I do find the coordinate is 0,0 it may explain, but doesn't solve the problem.
Ok, so I've just added small check to function that handle received locations. In cases, this location will have coordinates 0 and 0, it will be ignored. You will see if it helps next time.
And just for your information - orange GPS buttons means that Locus already received location from wi-fi or cell-ID (generally called in Android as "Network location"). Green color then means valid fix location from GPS.
Ok, so I've just added small check to function that handle received locations. In cases, this location will have coordinates 0 and 0, it will be ignored. You will see if it helps next time.
And just for your information - orange GPS buttons means that Locus already received location from wi-fi or cell-ID (generally called in Android as "Network location"). Green color then means valid fix location from GPS.
> And just for your information - orange GPS buttons means that Locus
already received location from wi-fi or cell-ID (generally called in
Android as "Network location")
just for my clearly understanding:
i only use GPS satellite and A-GPS is disabled in device setting, but i also see orange GPS button ?
> And just for your information - orange GPS buttons means that Locus
already received location from wi-fi or cell-ID (generally called in
Android as "Network location")
just for my clearly understanding:
i only use GPS satellite and A-GPS is disabled in device setting, but i also see orange GPS button ?
Ah sorry for confusion. I'll try it better for second time:
Orange GPS buttons means that Locus has enabled internal system (listeners) for receiving locations. Green button then means, that Locus already received valid GPS location. You may also see a green dashed or blue full circle on a map. Where green circle display received location from wi-fi
or cell-ID (generally called in Android as "Network location"). It may also use some older, cached value or also some older GPS location. Blue
color then means valid fix location from GPS so it match green GPS button in panel. Uff :).
Ah sorry for confusion. I'll try it better for second time:
Orange GPS buttons means that Locus has enabled internal system (listeners) for receiving locations. Green button then means, that Locus already received valid GPS location. You may also see a green dashed or blue full circle on a map. Where green circle display received location from wi-fi
or cell-ID (generally called in Android as "Network location"). It may also use some older, cached value or also some older GPS location. Blue
color then means valid fix location from GPS so it match green GPS button in panel. Uff :).
thanks for detailed discription ;-)
thanks for detailed discription ;-)
OK I get all that. It is consistent and provides the user with lots of useful diagnostics. The description is consistent with the manual although the "green dashed or blue full circle for wifi" could be added to that manual section.
So back to my original observation - if map centering is enabled but GPS icon is orange (valid location not found yet) why should the map be occasionally repositioned to 0,0? I have only seen it occur when Locus is starting, and only when inside where GPS will never be received. Yes, ignoring a 0,0 fix is a workaround but doesn't it suggest ignoring another problem?
OK I get all that. It is consistent and provides the user with lots of useful diagnostics. The description is consistent with the manual although the "green dashed or blue full circle for wifi" could be added to that manual section.
So back to my original observation - if map centering is enabled but GPS icon is orange (valid location not found yet) why should the map be occasionally repositioned to 0,0? I have only seen it occur when Locus is starting, and only when inside where GPS will never be received. Yes, ignoring a 0,0 fix is a workaround but doesn't it suggest ignoring another problem?
Andrew, hard to say. Without device in my hands, I'm unable to say from where these 0, 0 values comes. I'm also not sure, that a small change I made, may helps here. We will see :).
Andrew, hard to say. Without device in my hands, I'm unable to say from where these 0, 0 values comes. I'm also not sure, that a small change I made, may helps here. We will see :).
I have observed a similar problem, but after wakeup from screen off.
I start Locus and enable centering. I wait until a valid GPS location has been received and the map as been centered. Then I turn the screen off (or wait until the system shuts it off) and continue to move (walk or cycle). When I now wake the phone up (turn the screen on), the following happens:
1. The map is shown centered at the previous position (as expected).
2. GPS is started.
3. The map is centered at a different position that is somewhere in the surrounding, but neither the current nor the previous position.
4. Only when a valid GPS location has been received, the map is centered at the current position (as expected).
I wonder why step 3 happens and how I can avoid it. Normally I would expect that the map remains centered at the last known position until the new position has been received. Any ideas on that?
I have observed a similar problem, but after wakeup from screen off.
I start Locus and enable centering. I wait until a valid GPS location has been received and the map as been centered. Then I turn the screen off (or wait until the system shuts it off) and continue to move (walk or cycle). When I now wake the phone up (turn the screen on), the following happens:
1. The map is shown centered at the previous position (as expected).
2. GPS is started.
3. The map is centered at a different position that is somewhere in the surrounding, but neither the current nor the previous position.
4. Only when a valid GPS location has been received, the map is centered at the current position (as expected).
I wonder why step 3 happens and how I can avoid it. Normally I would expect that the map remains centered at the last known position until the new position has been received. Any ideas on that?
@Andrew, up to now I didn't know that there is a setting to display the coordinates in the top left panel, so thank your for the hint!
@Andrew, up to now I didn't know that there is a setting to display the coordinates in the top left panel, so thank your for the hint!
I have finally been able to witness this problem and quick enough to obtain a screen capture. Below is map centered on bogus S27/E133 - in the middle of South Australian dessert, 1000km from proper GPS coordinate. This occurred when I tapped the bottom/ left map center button. But the GPS icon is orange and when I displayed the GPS screen only 1 satellite had been detected, and position it not displayed. So again I ask, why is the map position moved when a valid GPS fix has not yet been established?
The map was moved correctly 30s later. BUT if I had been inside with no access to GPS (or cell or wifi signal) then I would now have to (tediously) manually move the map to a valid position
I have finally been able to witness this problem and quick enough to obtain a screen capture. Below is map centered on bogus S27/E133 - in the middle of South Australian dessert, 1000km from proper GPS coordinate. This occurred when I tapped the bottom/ left map center button. But the GPS icon is orange and when I displayed the GPS screen only 1 satellite had been detected, and position it not displayed. So again I ask, why is the map position moved when a valid GPS fix has not yet been established?
The map was moved correctly 30s later. BUT if I had been inside with no access to GPS (or cell or wifi signal) then I would now have to (tediously) manually move the map to a valid position
Hmm interesting. 1000 km is really too far.
Before Locus gets valid GPS fix, it tries to get location over Wi-fi, BTS. And if some such location is found, it's then used. Usually it works correctly, so I do not understand why different between you and this location is so far.
Anyway I have just improved this function and added testing on age of this secondary location. I'll try 5 minutes. When this location will be older, it won't be used. Thanks to this, we may at least see, if wi-fi/bts location is old and incorrect or new and incorrect. In first case, it won't be used - so problem solved. In second case, it will be used, so I may probably only do some settings to config.cfg to "not use use wi-fi/bts" location for centering.
Hmm interesting. 1000 km is really too far.
Before Locus gets valid GPS fix, it tries to get location over Wi-fi, BTS. And if some such location is found, it's then used. Usually it works correctly, so I do not understand why different between you and this location is so far.
Anyway I have just improved this function and added testing on age of this secondary location. I'll try 5 minutes. When this location will be older, it won't be used. Thanks to this, we may at least see, if wi-fi/bts location is old and incorrect or new and incorrect. In first case, it won't be used - so problem solved. In second case, it will be used, so I may probably only do some settings to config.cfg to "not use use wi-fi/bts" location for centering.
I haven't experienced a problem with the latest beta 3.14.1 yet, too early to tell, but below is screen capture (using 3.14.0) of map being moved even when the GPS was disabled. Wifi/ BTS disabled at time.
I haven't experienced a problem with the latest beta 3.14.1 yet, too early to tell, but below is screen capture (using 3.14.0) of map being moved even when the GPS was disabled. Wifi/ BTS disabled at time.
Replies have been locked on this page!