rmorenoramos
Neuling
Posts: 4
Joined: Mon 7. Mar 2016, 00:55

Problem reading TCX files with nonzero speed but same distance

Mon 7. Mar 2016, 01:06

Hello,

First of all, I am very impressed with the application. Congrats to all of you that have worked on it.

I am having some issues with TomTom runner generated files (TCX) that include several instances of time for which the time has increased in one second, it has non-null speed, but the distance is exactly the same as before.

Code: Select all

<Trackpoint>
<Time>2016-03-06T14:48:46Z</Time>
<Position><LatitudeDegrees>32.094401</LatitudeDegrees><LongitudeDegrees>-81.219844</LongitudeDegrees></Position>
<AltitudeMeters>14.2</AltitudeMeters>
<DistanceMeters>1058.41</DistanceMeters>
<HeartRateBpm><Value>127</Value></HeartRateBpm>
<Extensions><x:TPX><Speed>3.24</Speed></x:TPX></Extensions>
</Trackpoint>
<Trackpoint>
<Time>2016-03-06T14:48:47Z</Time>
<Position><LatitudeDegrees>32.094397</LatitudeDegrees><LongitudeDegrees>-81.219808</LongitudeDegrees></Position><AltitudeMeters>14.4</AltitudeMeters>
<DistanceMeters>1058.41</DistanceMeters>
<HeartRateBpm><Value>128</Value></HeartRateBpm>
<Extensions><x:TPX><Speed>3.26</Speed></x:TPX></Extensions>
</Trackpoint>
From what I have understood reading the code, the pace is recalculated when going through the TCX file based on the distance, hence the pace goes to zero and the outcome is a very weird pace plot.

Is there any way I can fix this?. I can import the GPX file, but then I lose data like the manual splits.

Thanks for your help.
0 x

User avatar
mipapo
Administrator
Posts: 1397
Joined: Mon 29. Jul 2013, 20:26
Location: Kiel
Contact: Website Facebook Twitter

Re: Problem reading TCX files with nonzero speed but same distance

Mon 7. Mar 2016, 07:05

Could you please upload the whole file?

Did you know that you can upload ttbin (original TomTom files) too?
0 x
###Donate to RUNALYZE###
Höhenmeter (Korrektur & Berechnung) - Nutzerhilfe/User help -

Run Happy!,
Michael
P.S. Ich antworte gerne kurz und knackig ;)
Image

rmorenoramos
Neuling
Posts: 4
Joined: Mon 7. Mar 2016, 00:55

Re: Problem reading TCX files with nonzero speed but same distance

Mon 7. Mar 2016, 22:38

Thanks for responding.

Yes, I was very positively surprised when I saw that I could upload ttbin directly, but unfortunately the parser seems to be doing exactly the same on ttbin files as it does on tcx's, so I figured that debugging a tcx file would be easier.

I have attached the tcx file to this post. It does not let me attach the ttbin though.

Regards
Attachments
Running_09-42-54.tcx
(1.57 MiB) Downloaded 252 times
0 x

User avatar
mipapo
Administrator
Posts: 1397
Joined: Mon 29. Jul 2013, 20:26
Location: Kiel
Contact: Website Facebook Twitter

Re: Problem reading TCX files with nonzero speed but same distance

Tue 8. Mar 2016, 16:58

You could just play around with the General settings->Activity view plot settings (Pace plot: Ignore outliers)
0 x
###Donate to RUNALYZE###
Höhenmeter (Korrektur & Berechnung) - Nutzerhilfe/User help -

Run Happy!,
Michael
P.S. Ich antworte gerne kurz und knackig ;)
Image

rmorenoramos
Neuling
Posts: 4
Joined: Mon 7. Mar 2016, 00:55

Re: Problem reading TCX files with nonzero speed but same distance

Tue 8. Mar 2016, 18:53

Thanks for the suggestion, but the ignore outliers option does not seem to have any effect in the tcx imported file.

Regards
0 x

User avatar
mipapo
Administrator
Posts: 1397
Joined: Mon 29. Jul 2013, 20:26
Location: Kiel
Contact: Website Facebook Twitter

Re: Problem reading TCX files with nonzero speed but same distance

Tue 8. Mar 2016, 19:21

This was just an example. Just try the other plot settings.
0 x
###Donate to RUNALYZE###
Höhenmeter (Korrektur & Berechnung) - Nutzerhilfe/User help -

Run Happy!,
Michael
P.S. Ich antworte gerne kurz und knackig ;)
Image

User avatar
laufhannes
Core developer
Posts: 761
Joined: Mon 29. Jul 2013, 20:59

Re: Problem reading TCX files with nonzero speed but same distance

Tue 8. Mar 2016, 22:55

I just tried the file with various 'Plot precision' settings (e.g. one point every 200m or at most 100 or 50 points), but I guess none of these shows what you expect.

However, there's no solution for that. These data points in your tcx file could mean anything: They can be real breaks that have to be excluded, they can be breaks that the user wants to keep and they can be the result of a bad gps signal or of an inaccurate gps sampling frequency (as it's in your case). The problem is: We can't detect what's the case in a tcx file.

There's an open issue to somehow define 'AutoPause' while importing files: https://github.com/Runalyze/Runalyze/issues/913
One could - as soon as that one is realized - easily add a checkbox to just ignore data points with same gps position.
0 x
User help -- short questions via Twitter, Facebook

rmorenoramos
Neuling
Posts: 4
Joined: Mon 7. Mar 2016, 00:55

Re: Problem reading TCX files with nonzero speed but same distance

Tue 8. Mar 2016, 23:44

Thanks laufhanes/mipapo

Yes, actually I have played with my copy of the code installed locally in my computer, and just setting the parameter $IGNORE_NO_MOVE_UNTIL = 0 in class.ParserTCXSingle.php would give me the desired outcome, although I realize that setting is probably not good for anybody else.

I will also try to get in touch with the TomTom guys, although from what I have seen so far the support is not great.

Thank you both for your help.
0 x

Return to “Runalyze v2.4.x”

Who is online

Users browsing this forum: No registered users and 0 guests