Replies: 1 comment 10 replies
-
Nice digging! Long answer:
Did not understand the PS part 🤷 |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, here I suggest some experimental modifications to OpenTracks code related to GPS speed/locations filtering and statistics calculation (the goal is to improve location filtering and mainly get better values of current speed and maximum speed).
On TrackStatisticsUpdater:
Use a lower value for MAX_ACCELERATION (at least for positive acceleration). It could be around 1g by default and perhaps vary depending on the activity type.
Calculate the acceleration with respect to the previous received location (preferably to the last one with a valid acceleration) and not to the last one recorded.
Discard the use of speedBuffer_mps (with a working distance filter and a more effective acceleration filtering perhaps better speed values could be obtained).
Move the acceleration filter to TrackRecordingManager.onNewTrackPoint() so that all the locations filtering is done in one place and the statistics correspond to what is recorded.
P.s. The same ideas could be tested with altitude by calculating slope rather than acceleration?.
Beta Was this translation helpful? Give feedback.
All reactions