Skip to content

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.

1 participant