Merge lp:~thomas-voss/location-service/do-not-rely-on-obsolete-satellite-based-positioning-state into lp:location-service/15.04
| Status: | Merged |
|---|---|
| Approved by: | Timo Jyrinki on 2016-03-02 |
| Approved revision: | 217 |
| Merged at revision: | 216 |
| Proposed branch: | lp:~thomas-voss/location-service/do-not-rely-on-obsolete-satellite-based-positioning-state |
| Merge into: | lp:location-service/15.04 |
| Diff against target: |
71 lines (+3/-24) 2 files modified
src/location_service/com/ubuntu/location/engine.cpp (+2/-14) tests/engine_test.cpp (+1/-10) |
| To merge this branch: | bzr merge lp:~thomas-voss/location-service/do-not-rely-on-obsolete-satellite-based-positioning-state |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Scott Sweeny (community) | Approve on 2016-03-02 | ||
| Timo Jyrinki | 2016-03-02 | Approve on 2016-03-02 | |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2016-03-02.
Commit Message
Remove explicit option to disable satellite-based positioning services.
The service is clever enough to dynamically enable/disable the provider, taking into account
accuracy requirements.
Description of the Change
Remove explicit option to disable satellite-based positioning services.
The service is clever enough to dynamically enable/disable the provider, taking into account
accuracy requirements.
- 217. By Thomas Voß on 2016-03-02
-
Adjust test case and remove expectations on satellite-based positioning state.
| Timo Jyrinki (timo-jyrinki) wrote : | # |
Confirming fixed from the silo on my Bq OTA-9.1.
| Scott Sweeny (ssweeny) wrote : | # |
This code looks good, and the tests all pass locally for me with this latest change.
| Timo Jyrinki (timo-jyrinki) wrote : | # |
That is, without the silo upgrade, unable to get a real GPS fix as witnessed with client --bus system. With the silo in identical conditions, a trustworthy GPS fix with accurate location.
| Timo Jyrinki (timo-jyrinki) wrote : | # |
Ok the problem and how to test the fix:
/var/lib/
- On my (stable OTA-9.1, untouched) phone the second line about satellites use was "Off"
Real GPS wasn't use, only the cell/wifi based approximation 500m-1km off the goal.
I used "client" from ubuntu-
After upgrading to the fixed silo, despite the config.ini still having the "Off" in there on the second line, I started getting (when near window or outside) the exact coordinates of myself and also additional data in the ./client --bus system output regarding velocity that was not there before.
| Timo Jyrinki (timo-jyrinki) wrote : | # |
Ie Engine:


Two tests failing (in the silo build):
Engine. reads_state_ from_settings_ on_construction stores_ state_from_ settings_ on_destruction
Engine.