Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intervals wildly off #159

Closed
typhoon2099 opened this issue Apr 25, 2019 · 4 comments · Fixed by #162
Closed

Intervals wildly off #159

typhoon2099 opened this issue Apr 25, 2019 · 4 comments · Fixed by #162

Comments

@typhoon2099
Copy link
Contributor

Some of my downloaded runs have crazy distances attributed to each lap in an interval run:

<DistanceMeters>-296816.00</DistanceMeters> and the like. As an example, here's a link to a Strava activity. As you can see, I've been to the sun and back!

All the other data about the run is fine, just the distances per lap is wrong (sometimes majorly in the negative, or 0m).

@scubajorgen
Copy link
Contributor

scubajorgen commented Apr 25, 2019 via email

@typhoon2099
Copy link
Contributor Author

typhoon2099 commented Apr 25, 2019

Interesting. I'll have a look through the TCX file but it went onto Strava and didn't have any unusual points on it. That said, Strava does a pretty good job of tidying up uploaded data (just not interval distances it seems).

UPDATE: The TCX file doen't have any unusual points on it, so either my watch is messing up its interval distances, or the conversion code is doing something funny. I'm going to dig through the code and see what I can find.

@typhoon2099
Copy link
Contributor Author

Oh, I forgot to post the files for the run when I made opened this issue. Here's one from today.

ttwatch.zip

@typhoon2099
Copy link
Contributor Author

I've been digging into this issue today and I've found that in parse_ttbin_data if I look at p.record->interval_finish.total_distance then I get the crazy distances. However, I have been unable to track the issue back any further. Going by what I've read in the code I have to assume that the ttbin data itself is incorrect, as I can't find anywhere else where this value can be broken (or indeed where it was created in the first place). Whether or not ttwatch did something to the data or not I can't tell, nor do I want to try and debug this one run at a time (unless there's somewhere I can prevent the run from being removed from my watch). C++ is not my first language, so I could easily be missing something obvious here.

As an addendum I will point out that I have uploaded runs using the (absolutely awful) TomTom Sports app, and the intervals are correct there. They may just be ignoring the total_distance and calculating it using the difference in cumulative distances at the start and end of an interval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants