SamR1 / FitTrackee

Self-hosted outdoor activity tracker :bicyclist:
https://samr1.github.io/FitTrackee
GNU Affero General Public License v3.0
643 stars 38 forks source link

[Feature] Sanity check for records #226

Open sgofferj opened 1 year ago

sgofferj commented 1 year ago

I noticed that in the "records" on the my dashboard are some pretty unlikely values which probably come from GPS glitches. E.g. top speeds - 148.02 km/h for Cycling (transport) or 351.53 km/h for Walking. How about some sanity checks for the records in the form of max. plausible speeds?

SamR1 commented 1 year ago

Hi,

gpxpy excludes top values to remove some GPS errors (and sometimes some correct values too, see #48)

Are these values related to workouts recently uploaded?

sgofferj commented 1 year ago

04.07.2022 most recent as far as I can tell. While I was inside a shop, the GPS jump some 100m. Screenshot_20220804_105202 I can send the GPX if it helps.

SamR1 commented 1 year ago

Hi,

Sorry for the delay.

It seems there are some invalid values left after gpxpy processing. I have sometimes the same issue when I forget to stop/pause the recording (in this case, I edit the file manually to remove some invalid points and let gpxpy removing the remaining ones, but that's not the best solution...).

Adding max values will make the records less relevant. But it can be a workaround before reworking gpx file processing (and adding gpx data edition). A additional solution can be to let user edit max speed value on FitTrackee, to overwrite value calculated by gpxpy.

Firesphere commented 7 months ago

@sgofferj You only got to 148km/h? Come on, put some effort in it!

Max. speed 730.77 km/h

On a serious note, I agree, I'd like to see these glitches solved as well. Other than that, this is a pretty cool application!