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

track record file positions to allow for record editing #137

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mt5555
Copy link

@mt5555 mt5555 commented Jan 11, 2022

This PR adds the file positions of each record to the parsing code.

Motivation: I have a garmin 66i that occasionally produces bad records ( corrupt time and/or very inaccurate gps coordinates). With this record data added to fitparse, I was able to write a second script (based on fitdump) that as it reads a .fit file will write a new .fit file removing the bad records, keeping all other records and updating the checksums and other header data. That "fixfit.py" script is in my fork. It's not very polished so not included here.

Submitting this PR, in case there is any interest in this type of capability. longer term it would be great to see a python based .fit editor

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

1 participant