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

Extract speed unit from fit files #82

Closed
wants to merge 1 commit into from

Conversation

folixg
Copy link

@folixg folixg commented Jan 9, 2024

If the fit file uses m/s as speed unit, the values are converted to km/h.
I'm sure there is a cleaner way to do this, but this should work (or at least worked for the FIT-files I tested it with).

If the fit file uses m/s as speed unit, the values are converted to km/h
@martin-ueding
Copy link
Owner

Thank's for the PR, I'm not sure when I can review it, but I hope I will get to it soon.

martin-ueding added a commit that referenced this pull request Jan 13, 2024
@martin-ueding
Copy link
Owner

I didn't know that the FIT file fields had units attached to them. That is a great thing, we can indeed just get the conversion from there.

I've implemented it a little bit differently in order to make it a hard error when there is no unit or an unknown unit. So I haven't merged your code, but your idea is now part of the master branch.

@folixg
Copy link
Author

folixg commented Jan 14, 2024

Definitely a cleaner solution compared to my quick fix. Thanks!

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 this pull request may close these issues.

None yet

2 participants