-
Notifications
You must be signed in to change notification settings - Fork 11
[BUG] Altitude is shown incorrectly #189
Comments
I suddenly remembered seeing that wkz uses an specific older version of fitparse. So I wondered if the issue was in fitparse and if so if it was fixed in the newer version (some lines removed for clarity):
and with the newer version of fitparse:
So the problem looks to be in the version of fitparse wkz is using. After checking the requirements.in file is also states it is because of altitude data:
If thats the only problem the handling we should look at how wkz handles altitude data. |
After looking into this some more, I see @fgebhart opened an bug at dtcooper/python-fitparse#123 with fitparse for this issue. |
Hi @gotiniens, as you correctly pointed out, the Workoutzier currently uses the According to this comment, At first glance it seems that the Good idea of comparing the topo altitude lines to the altitude values in the plot given by wkz. A small discrepancy should be acceptable when measuring altitude with a barometer since air pressure does not only depend on the height but also the weather conditions (and thus should be calibrated once in a while). However, comparing the altitude plots of some of the wkz demo files with the osm topo altitude lines reveals a discrepancy of even ~300m (i.e. for I will try to double-check whether it would be possible to switch wkz to use |
Turns out I was using the wrong altitude values! 😮 The values in I think I decided to stick with @gotiniens could you confirm that the changes in the above PR (mainly because of using And thanks for raising this! 👍 |
Is there some official documentation about the fit files? Although this forum post seem pretty accurate having an official resource to consult could help for better understanding which values to use
In my quick tests it looks like both fields have the same value, so are you sure you are seeing different values?
In the Netherlands there are lots of cities below sea level so it is very much possible to have negative values while not diving 😉 . But for most of the demo activities that seems a bit of a stretch, for which activity did you encounter the negative values?
The PR Seems to be working fine, the graph plots as expected. Maybe use
NP! |
I once came across this official garmin document, but it doesn't say anything about the
In fitparse version 1.2.0 both
In the beginning and the ending of e.g.
Good catch, will implement using |
Describe the bug
The altitude in the above graph is incorrect, this exercise was around 35m not 270m+, Although the profile seems correct.
Additional context
I see this on a 910XT and a 920XT, with
fitdump
you see this:Where
enhanced_altitude
looks like the correct altitude, the devices both have an barometer, but I dont know if it is relevant for this issue.When checking the demo fit file
2020-08-31-17-41-11.fit
I think I see the same issue:You can also see that altitude is wrong when using the
Topo
view of the map, because that view renders height line on the map. Although the looks to be an small discrepancy between those lines and theenhanced_altitude
In the FIT SDK I could not (yet) find an description how to handle altitude.
The text was updated successfully, but these errors were encountered: