Skip to content

Made some updates which fixes some of the bugs reported in your issues #72

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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

Eric-11
Copy link

@Eric-11 Eric-11 commented Oct 20, 2023

Updated the fit format to 22.101 and included some utility tools to allow users to make their own updates if the FIT profiles change again.

Work in progress to check multisport, etc, but some issues seem to be fixed with the newer enumerated data list.
timeInZones allows for variable number of zone upper boundaries to be passed
Significant changes to $enum_data and $data_mesg_info to accommodate FIT 21.101 with dynamic messages. Decoding dynamic messages has not yet been added or tested.

Added debug messages to class for debugging various FIT files.
Added details about newest updates including utility to automatically extract new FIT profile changes in the future.
This is a stand alone tool to read the garmin sdk Profile.xlsx sheets saved as csv.  Examples are included in this directory but they should be updated as needed.
example output from readProfileCSV.php for private $enum_data array in phpFitFileAnalysis.php
Example output from readProfileCSV.php for importing into phpFitFileAnalysis.php
FIT files made from Garmin SDK 21.101 including original Profile.xlsx source from https://developer.garmin.com/fit/download/
Fixed formatting and added more clarification.
Some values were not properly setup as integer and the dynamic arrays were updated to be more backwards compatible with the code.
Reflects latest updates to array structures
Latest update to array structures
* Updated handling of enum/mesg arrays. 
* More debug information to aid in refactoring and adding dynamic fields.
* Some minor refactoring of accessing binary file bytes
* Added hex_dump to inspect data blocks
* Debug mode is extensive while reading data to help refactor some of this code
* Ability to detect and process dynamic fields not yet implimented
@adriangibbons
Copy link
Owner

Hi @Eric-11 thank you so much for all your effort! Was it possible to run the PHPUnit tests successfully?

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.

2 participants