jonasoreland / runnerup

A open source run tracker
GNU General Public License v3.0
752 stars 275 forks source link

run pausing incorrectly #1125

Open stibinator opened 1 year ago

stibinator commented 1 year ago

Often when running the app pauses my activity while I'm still moving. I have it set to auto pause below 20min/km—now I'm slow, but not THAT slow. I'm assuming that it may be that the GPS is losing the satellite track. One workaround for this would be that if GPS data isn't good the application should monitor the accelerometer and if it is still registering movement, to extrapolate from the previous few seconds until the satellites come back, and then interpolate between the last known GPS reading and the current position. I'm pretty sure that Strava does something like this. If I shake my phone while the Strava app is auto-paused it will assume that I have started running again.

gerhardol commented 1 year ago

Detecting pauses is hard. I have tried to improve the algorithm with smoothing. Personally, I want all data and do not use auto-pause. I consider to calculate the "time stopped" though.

Using sensors is very device dependent. For instance Huawei limits access to sensors, so cadence from the step sensor is useless. The step sensor is otherwise a simpler alternative than the accelerometer. But he algoritm is still hard to tune.

to be honest, this is not high on my prio list. Contributions are welcome.