-
Notifications
You must be signed in to change notification settings - Fork 12
Jitters are recorded when switching applications. #33
Comments
Apps aren't usually allowed to do stuff in the background, due to battery friendly ubuntu touch apps lifecycle. |
While waiting for the implementation of location services in the background you can maybe use Utrack. It works quite well without draining the battery.. Edit: And it automatically imports tracks into the Activity tracker if you want. |
Yes, I know. I'm am suggesting workaround for this issue, until we get location working in the background (if ever). Another workaround idea (instead of "guessing" using time itervals) would be to pause recording if GPS precision is too poor. Or detect that app was woken up (using timer intervals) PLUS waiting for precision to return to optimal. Etc, etc.
Thanks for suggestion @hendrikscheewel , but that feels too.. "advanced". I could do that (I am not afraid of terminals & scripting, etc, etc), but.. no :) . |
The original developer set the GPS recording method to high, by using the satellite. In Utrack, i've fix a specific position error to block the recording if the measurement error goes above. However in ActivityTracker this information is not giving to the software, but managed by QT libraries and below. If possible to use this way, It's a significant amount of work for fixing an operating system feature. |
I've played a bit with ActivityTracker, buit with various changes. Firstly, I seems that
It's rather.. inefficient..? Maybe this is Ubuntu-touch-backed specifics? I mean, application has to perform same calculations tree times. That's battery usage. Secondly, |
Mmh... that's not ActivityTracker fault. We just do some stuff when the signal
Did you disables app suspension when in background? I don't know why a timer would trigger outside its interval... |
Yes, this is comment for the backend / Qt .
No, it's when there is a change, that slot is called multiple times for the same change. Basically application performs same calculation multiple times in few milliseconds.
Suspencion is left as is, not disabled. Timer triggers not when application is asleep, but when you get back, probably timer events are queued in Kernel and Qt event loop just "plays" them after it is possible (after being resumed). At least that's my guess. |
I meant that the first is called when the position changes but when the second and the third are called the position hasn't changed yet...
I guess you can try to disable that and see if it improves
Ok, that's right. the app is suspended so timers can't be triggered while in background. But then I'm afraid I haven't understood the timer issue... |
Well yes, from that point of view. Maybe
Yeah maybe, but user shouldn't need to "hack" around using some other software that has full OS access, etc, etc...
Let's paraphrase. When you return to ActiviytTracker after some while, you get burst of these queued late timer events, maybe taking not-yet-very-precise coordinates into GPX route, hence, the "jitters". I've forgot to take a test while walking to/from job yesterday, will try (to not forget) today. Another idea is to use |
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):
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.
The text was updated successfully, but these errors were encountered: