Danfro / ActivityTracker

ActivityTracker app for Ubuntu
GNU General Public License v3.0
1 stars 0 forks source link

Jitters are recorded when switching applications #6

Open Danfro opened 8 months ago

Danfro commented 8 months ago

Originally reported by @Talkless under https://github.com/ernesst/ActivityTracker/issues/33.

My use case is that I use ActivityTracker to record some path, and PureMaps to collect "bookmarks", noting in this way points of interests or other details to be uploaded to OpenStreetMap later.

But issue is that when I switch from PureMaps back to ActivityTracker, I get "jitters" recorded on the map, like this (screenshot from JOSM editor):

grafik

Maybe it' location service issue, as during switch I see that location indicator flashes off/on, so maybe precision is actaully lost, IDK.

Though maybe it would be possible to workaround this issue with (primitive?) heuristics? If application is switched-back, app should get GPS position change event "significantly" (whatever that is) later than expected 5s (if 5000ms is the interval set in app settings) since the last event (before switching applications). Detected as such, this position change event could be ignored, maybe even together with subsequent (and too frequent) ones, as it seems there are "burst" of GPS updates after switching back).

EDIT: this is detected on BQ Aquaris E5.

Danfro commented 8 months ago

For the full lengthy discussion in this issue please see the original report.