Skip to content

Commit

Permalink
regenerate for FIT SDK v21.126
Browse files Browse the repository at this point in the history
  • Loading branch information
sportlog committed Feb 4, 2024
1 parent 3e916c4 commit f8ddca0
Show file tree
Hide file tree
Showing 287 changed files with 335 additions and 290 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# FIT

A PHP (>= PHP 8) decoder for FIT files created by Garmin devices.
The result is a list of all messages decoded from the file. Each message
is an instance of its underlying message class, so you can easily access
any (native) fields using intellisense. (FIT SDK 21.115)
any (native) fields using intellisense. (FIT SDK 21.126)

## Install via Composer

You can install sportlog/FIT using Composer.

``` bash
```bash
$ composer require sportlog/fit
```

Minimum PHP version required is 8.

## How to use

``` php
```php
<?php

require 'vendor/autoload.php';
Expand Down Expand Up @@ -49,6 +52,8 @@ echo "Total ascent (m): " . $lastRecordMessage->getTotalAscent();
```

## Limitations

Currently not supported
* Compressed time stamps
* Components

- Compressed time stamps
- Components
2 changes: 1 addition & 1 deletion config/MessageGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MessageGenerator
/**
* FIT-SDK Version
*/
const FIT_SDK_VERSION = '21.115';
const FIT_SDK_VERSION = '21.126';
const MESSAGE_START = "Mesg newMesg = new Mesg(";
const FIELD_START = "newMesg.SetField(new Field(";
const MESSAGE_END = "return newMesg";
Expand Down
20 changes: 20 additions & 0 deletions config/Profile.csv
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ mesg_num,uint16,,,
,,beat_intervals,290,
,,respiration_rate,297,
,,split,312,
,,split_summary,313,
,,climb_pro,317,
,,tank_update,319,
,,tank_summary,323,
Expand Down Expand Up @@ -451,6 +452,9 @@ sport,enum,,,
,,diving,53,
,,hiit,62,
,,racket,64,
,,wheelchair_push_walk,65,
,,wheelchair_push_run,66,
,,meditation,67,
,,water_tubing,76,
,,wakesurfing,77,
,,all,254,All is for goals only to include all sports.
Expand Down Expand Up @@ -582,6 +586,9 @@ sub_sport,enum,,,
,,tabata,75,HIIT
,,pickleball,84,Racket
,,padel,85,Racket
,,indoor_wheelchair_walk,86,
,,indoor_wheelchair_run,87,
,,indoor_hand_cycling,88,
,,fly_canopy,110,Flying
,,fly_paraglide,111,Flying
,,fly_paramotor,112,Flying
Expand Down Expand Up @@ -1016,6 +1023,8 @@ manufacturer,uint16,,,
,,blackbird,146,
,,meilan_byte,147,
,,ezon,148,
,,laisi,149,
,,myzone,150,
,,development,255,
,,healthandlife,257,
,,lezyne,258,
Expand Down Expand Up @@ -1085,6 +1094,9 @@ manufacturer,uint16,,,
,,shanyue,322,
,,spinning_mda,323,
,,hilldating,324,
,,aero_sensor,325,
,,nike,326,
,,magicshine,327,
,,actigraphcorp,5759,
garmin_product,uint16,,,
,,hrm1,1,
Expand Down Expand Up @@ -1417,6 +1429,7 @@ garmin_product,uint16,,,
,,marq_golfer,3739,
,,venu_daimler,3740,
,,fr745_asia,3794,
,,varia_rct715,3808,
,,lily_asia,3809,
,,edge_1030_plus_asia,3812,
,,edge_130_plus_asia,3813,
Expand Down Expand Up @@ -1473,6 +1486,8 @@ garmin_product,uint16,,,
,,approach_s70,4233,
,,fr265_large,4257,
,,fr265_small,4258,
,,venu3,4260,
,,venu3s,4261,
,,tacx_neo_smart,4265,"Neo Smart, Tacx"
,,tacx_neo2_smart,4266,"Neo 2 Smart, Tacx"
,,tacx_neo2_t_smart,4267,"Neo 2T Smart, Tacx"
Expand All @@ -1491,9 +1506,14 @@ garmin_product,uint16,,,
,,epix_gen2_pro_51,4314,
,,fr965,4315,
,,enduro2,4341,
,,fenix7s_pro_solar,4374,
,,fenix7_pro_solar,4375,
,,fenix7x_pro_solar,4376,
,,instinct_2x,4394,
,,vivoactive5,4426,
,,descent_t2,4442,
,,marq_gen2_commander,4472,
,,d2_mach1_pro,4556,
,,sdm4,10007,SDM4 footpod
,,edge_remote,10014,
,,tacx_training_app_win,20533,
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/MessageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/AccelerometerDataMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/ActivityMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/AntChannelIdMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/AntRxMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/AntTxMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/AviationAttitudeMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/BarometerDataMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/BeatIntervalsMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/BikeProfileMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/BloodPressureMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/CadenceZoneMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/CameraEventMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/CapabilitiesMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/ClimbProMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/ConnectivityMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/CourseMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/CoursePointMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/DeveloperDataIdMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/DeviceAuxBatteryInfoMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/DeviceInfoMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/DeviceSettingsMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/DiveAlarmMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/DiveApneaAlarmMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/DiveGasMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/DiveSettingsMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/DiveSummaryMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/EventMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
2 changes: 1 addition & 1 deletion src/Profile/Messages/ExdDataFieldConfigurationMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @license MIT License
*
* ****WARNING**** This file is auto-generated! Do NOT edit.
* Profile Version = 21.115Release
* Profile Version = 21.126Release
*/

declare(strict_types=1);
Expand Down
Loading

0 comments on commit f8ddca0

Please sign in to comment.