Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e49136

Browse files
committed
regenerate for FIT SDK v21.188
1 parent e8a9da8 commit 4e49136

329 files changed

Lines changed: 585 additions & 361 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A PHP (>= PHP 8) decoder for FIT files created by Garmin devices.
44
The result is a list of all messages decoded from the file. Each message
55
is an instance of its underlying message class, so you can easily access
6-
any (native) fields using intellisense. (FIT SDK 21.171)
6+
any (native) fields using intellisense. (FIT SDK 21.188)
77

88
## Install via Composer
99

composer.lock

Lines changed: 42 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/MessageGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* How to generate:
2727
* - Grab FIT SDK (https://developer.garmin.com/fit/download/)
28-
* - Copy new Profile.cs (from cs/Dynastream/Fit) to this folder
28+
* - Copy new Profile.cs (from cs/Dynastream/Fit) to this folder (/cs/Dynastream/Fit/Profile.cs)
2929
* - Export Profile.xlsx as CSV and copy to this folder
3030
*
3131
* After generation:
@@ -37,7 +37,7 @@ class MessageGenerator
3737
/**
3838
* FIT-SDK Version
3939
*/
40-
const FIT_SDK_VERSION = '21.171';
40+
const FIT_SDK_VERSION = '21.188';
4141
const MESSAGE_START = "Mesg newMesg = new Mesg(";
4242
const FIELD_START = "newMesg.SetField(new Field(";
4343
const MESSAGE_END = "return newMesg";

config/Profile.cs

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// Transfer (FIT) Protocol License.
77
/////////////////////////////////////////////////////////////////////////////////////////////
88
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
9-
// Profile Version = 21.171.0Release
10-
// Tag = production/release/21.171.0-0-g57fed75
9+
// Profile Version = 21.188.0Release
10+
// Tag = production/release/21.188.0-0-g55050f8
1111
/////////////////////////////////////////////////////////////////////////////////////////////
1212

1313
#endregion
@@ -240,6 +240,7 @@ public enum Type
240240
GasConsumptionRateType,
241241
TapSensitivity,
242242
RadarThreatLevelType,
243+
SleepDisruptionSeverity,
243244
MaxMetSpeedSource,
244245
MaxMetHeartRateSource,
245246
HrvStatus,
@@ -801,6 +802,14 @@ private static void InitMesg(ushort num)
801802
newMesg = CreateSleepAssessmentMesg();
802803
break;
803804

805+
case MesgNum.SleepDisruptionSeverityPeriod:
806+
newMesg = CreateSleepDisruptionSeverityPeriodMesg();
807+
break;
808+
809+
case MesgNum.SleepDisruptionOvernightSeverity:
810+
newMesg = CreateSleepDisruptionOvernightSeverityMesg();
811+
break;
812+
804813
case MesgNum.SkinTempOvernight:
805814
newMesg = CreateSkinTempOvernightMesg();
806815
break;
@@ -5141,6 +5150,34 @@ private static Mesg CreateSleepAssessmentMesg()
51415150
return newMesg;
51425151
}
51435152

5153+
private static Mesg CreateSleepDisruptionSeverityPeriodMesg()
5154+
{
5155+
ushort fieldIndex, subfieldIndex;
5156+
Mesg newMesg = new Mesg("SleepDisruptionSeverityPeriod", MesgNum.SleepDisruptionSeverityPeriod);
5157+
fieldIndex = 0;
5158+
newMesg.SetField(new Field("MessageIndex", 254, 132, 1, 0, "", false, Type.MessageIndex));
5159+
fieldIndex++;
5160+
newMesg.SetField(new Field("Timestamp", 253, 134, 1, 0, "", false, Type.DateTime));
5161+
fieldIndex++;
5162+
newMesg.SetField(new Field("Severity", 0, 0, 1, 0, "", false, Type.SleepDisruptionSeverity));
5163+
fieldIndex++;
5164+
5165+
return newMesg;
5166+
}
5167+
5168+
private static Mesg CreateSleepDisruptionOvernightSeverityMesg()
5169+
{
5170+
ushort fieldIndex, subfieldIndex;
5171+
Mesg newMesg = new Mesg("SleepDisruptionOvernightSeverity", MesgNum.SleepDisruptionOvernightSeverity);
5172+
fieldIndex = 0;
5173+
newMesg.SetField(new Field("Timestamp", 253, 134, 1, 0, "", false, Type.DateTime));
5174+
fieldIndex++;
5175+
newMesg.SetField(new Field("Severity", 0, 0, 1, 0, "", false, Type.SleepDisruptionSeverity));
5176+
fieldIndex++;
5177+
5178+
return newMesg;
5179+
}
5180+
51445181
private static Mesg CreateSkinTempOvernightMesg()
51455182
{
51465183
ushort fieldIndex, subfieldIndex;

config/Profile.csv

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ mesg_num,uint16,,,
142142
,,dive_apnea_alarm,393,
143143
,,skin_temp_overnight,398,
144144
,,hsa_wrist_temperature_data,409,Message number for the HSA wrist temperature data message
145+
,,sleep_disruption_severity_period,470,
146+
,,sleep_disruption_overnight_severity,471,
145147
,,mfg_range_min,0xFF00,0xFF00 - 0xFFFE reserved for manufacturer specific messages
146148
,,mfg_range_max,0xFFFE,0xFF00 - 0xFFFE reserved for manufacturer specific messages
147149
checksum,uint8,,,
@@ -1141,6 +1143,7 @@ manufacturer,uint16,,,
11411143
,,tektro_racing_products,333,
11421144
,,darad_innovation_corporation,334,
11431145
,,cycloptim,335,
1146+
,,runna,337,
11441147
,,actigraphcorp,5759,
11451148
garmin_product,uint16,,,
11461149
,,hrm1,1,
@@ -1573,6 +1576,7 @@ garmin_product,uint16,,,
15731576
,,hrm_fit,4446,
15741577
,,marq_gen2_commander,4472,
15751578
,,lily_athlete,4477,aka the Lily 2 Active
1579+
,,rally_x10,4525,Rally 110/210
15761580
,,fenix8_solar,4532,
15771581
,,fenix8_solar_large,4533,
15781582
,,fenix8_small,4534,
@@ -1585,14 +1589,25 @@ garmin_product,uint16,,,
15851589
,,instinct3_amoled_45mm,4586,
15861590
,,instinct3_amoled_50mm,4587,
15871591
,,descent_g2,4588,
1592+
,,venu_x1,4603,
15881593
,,hrm_200,4606,
15891594
,,vivoactive6,4625,
1595+
,,fenix8_pro,4631,
1596+
,,edge_550,4633,
1597+
,,edge_850,4634,
1598+
,,venu4,4643,
1599+
,,venu4s,4644,
15901600
,,approachS44,4647,
1601+
,,edge_mtb,4655,
15911602
,,approachS50,4656,
15921603
,,fenix_e,4666,
1604+
,,bounce2,4745,
15931605
,,instinct3_solar_50mm,4759,
15941606
,,tactix8_amoled,4775,
15951607
,,tactix8_solar,4776,
1608+
,,d2_mach2,4879,
1609+
,,instinct_crossover_amoled,4678,
1610+
,,d2_air_x15,4944,
15961611
,,sdm4,10007,SDM4 footpod
15971612
,,edge_remote,10014,
15981613
,,tacx_training_app_win,20533,
@@ -4490,6 +4505,11 @@ radar_threat_level_type,enum,,,
44904505
,,threat_none,1,
44914506
,,threat_approaching,2,
44924507
,,threat_approaching_fast,3,
4508+
sleep_disruption_severity,enum,,,
4509+
,,none,0,
4510+
,,low,1,
4511+
,,medium,2,
4512+
,,high,3,
44934513
max_met_speed_source,enum,,,
44944514
,,onboard_gps,0,
44954515
,,connected_gps,1,

src/Profile/MessageFactory.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @license MIT License
77
*
88
* ****WARNING**** This file is auto-generated! Do NOT edit.
9-
* FIT 21.171 SDK
9+
* FIT 21.188 SDK
1010
*/
1111

1212
declare(strict_types=1);
@@ -105,6 +105,8 @@
105105
use Sportlog\FIT\Profile\Messages\SkinTempOvernightMessage;
106106
use Sportlog\FIT\Profile\Messages\SlaveDeviceMessage;
107107
use Sportlog\FIT\Profile\Messages\SleepAssessmentMessage;
108+
use Sportlog\FIT\Profile\Messages\SleepDisruptionOvernightSeverityMessage;
109+
use Sportlog\FIT\Profile\Messages\SleepDisruptionSeverityPeriodMessage;
108110
use Sportlog\FIT\Profile\Messages\SleepLevelMessage;
109111
use Sportlog\FIT\Profile\Messages\SoftwareMessage;
110112
use Sportlog\FIT\Profile\Messages\SpeedZoneMessage;
@@ -267,6 +269,8 @@ public static function createMessage(int $globalMessageNumber): Message
267269
MesgNum::TANK_UPDATE => new TankUpdateMessage(),
268270
MesgNum::TANK_SUMMARY => new TankSummaryMessage(),
269271
MesgNum::SLEEP_ASSESSMENT => new SleepAssessmentMessage(),
272+
MesgNum::SLEEP_DISRUPTION_SEVERITY_PERIOD => new SleepDisruptionSeverityPeriodMessage(),
273+
MesgNum::SLEEP_DISRUPTION_OVERNIGHT_SEVERITY => new SleepDisruptionOvernightSeverityMessage(),
270274
MesgNum::SKIN_TEMP_OVERNIGHT => new SkinTempOvernightMessage(),
271275
MesgNum::PAD => new PadMessage(),
272276
default => new InvalidMessage()

0 commit comments

Comments
 (0)