OpenTracks icon indicating copy to clipboard operation
OpenTracks copied to clipboard

elevation gain/loss without barometer (i.e., from GPS)

Open hex-m opened this issue 4 years ago • 8 comments

Is your feature request related to a problem? Please describe. My device shows "elevation" but shows neither "gain" nor "loss". This is confusing to me.

Describe the solution you'd like I understand that devices without barometer (like mine) are not good at measuring elevation/altitude. But if it's good enough to show the current elevation, it should also be good enough for calculating elevation gain and loss. Maybe the accuracy could be shown?

Describe alternatives you've considered Elevation could be hidden altogether on devices without barometer.

hex-m avatar Mar 01 '21 14:03 hex-m

This would be a great addition, but it is actually quite complicated to do (if done properly). Here is some more info: https://www.gpsvisualizer.com/tutorials/elevation_gain.html

So, if you really want to work on that: go ahead! I can give you some info on how to start.

PS: the issue is that elevation from a GPS is "okay", but not sufficient to directly compute the gain/loss as the noise is too high and adds up. So, showing the absolute value is useful.

dennisguse avatar Mar 01 '21 16:03 dennisguse

It might not be that complicated - it might be sufficient to just change TrackStatisticsUpdater, so it filters the TrackPoint.getElevation(). A similar approach is already in place for the speed. And we only would need to this, if no barometric data is present.

dennisguse avatar Mar 17 '21 16:03 dennisguse

Well then let's build this one first (before grade/slope #955). I can prepare something next month. My problem is a severe lack of mountains (60m above ground doesn't count :) )and thus test data. @vsevjednom-cz could you then take care about the testing and fine tuning?

https://github.com/OpenTracksApp/OpenTracks/issues/955#issuecomment-926464206

dennisguse avatar Sep 24 '21 10:09 dennisguse

could you then take care about the testing and fine tuning?

Of course 🤩. There aren't many mountains here around Brno, but I know all of existing ones 🚲.

vsevjednom-cz avatar Sep 24 '21 10:09 vsevjednom-cz

@dennisguse @vsevjednom-cz I can help testing it too.

rgmf avatar Sep 24 '21 10:09 rgmf

@Niekto350 had no time to work on this so far, but the approach described here sounded very promising: https://github.com/OpenTracksApp/OpenTracks/issues/619#issuecomment-788071078

dennisguse avatar Jan 15 '22 18:01 dennisguse

I guess, we will go with #1424 to actually get a barometric sensor if the phone has none. Deriving gain/loss from GPS is way too imprecise.

dennisguse avatar Dec 08 '22 19:12 dennisguse