Skip to content

Commit f142941

Browse files
committed
updated for sdk version 21.60
1 parent d317650 commit f142941

6 files changed

Lines changed: 185 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ All the required code is auto generated by running a python script `fitsdkparser
8282

8383
## Update for a new SDK
8484

85-
When a new SDK is available, after download, you can copy the new `Profile.xlsx`.
85+
When a new SDK is available, after download, you can copy the new `Profile.xlsx` into the `python` directory and edit the file `fitsdkversion.txt` with the version used.
8686

8787
You need to then run the `fitsdkparser.py` script that will automatically update the swift code for the latest version of the sdk
8888

Sources/FitFileParser/rzfit_swift_map.swift

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import FitFileParserObjc
44

55
extension FitFile {
6-
public static let sdkVersion = "21.47"
6+
public static let sdkVersion = "21.60"
77
}
88

99
//MARK: - Module Entry Point Functions
@@ -703,6 +703,9 @@ func rzfit_swift_unit_for_field( mesg_num : FIT_UINT16, field : String ) -> Stri
703703
case "avg_flow": return "Flow"
704704
case "total_fractional_ascent": return "m"
705705
case "total_fractional_descent": return "m"
706+
case "avg_core_temperature": return "C"
707+
case "min_core_temperature": return "C"
708+
case "max_core_temperature": return "C"
706709
case "end_position_lat": return "semicircles"
707710
case "end_position_long": return "semicircles"
708711
case "avg_swimming_cadence": return "strokes/min"
@@ -766,6 +769,7 @@ func rzfit_swift_unit_for_field( mesg_num : FIT_UINT16, field : String ) -> Stri
766769
case "ebike_battery_level": return "percent"
767770
case "ebike_assist_mode": return "depends on sensor"
768771
case "ebike_assist_level_percent": return "percent"
772+
case "core_temperature": return "C"
769773
case "battery_level": return "V"
770774
case "virtual_partner_speed": return "m/s"
771775
case "hr_high_alert": return "bpm"
@@ -2013,6 +2017,7 @@ fileprivate func rzfit_swift_string_from_sub_sport(_ input : FIT_ENUM) -> String
20132017
case 57: return "apnea_hunting"
20142018
case 58: return "virtual_activity"
20152019
case 59: return "obstacle"
2020+
case 65: return "sail_race"
20162021
case 254: return "all"
20172022
default: return "sub_sport_\(input)"
20182023
}
@@ -2456,6 +2461,7 @@ fileprivate func rzfit_swift_string_from_manufacturer(_ input : FIT_UINT16) -> S
24562461
case 38: return "osynce"
24572462
case 39: return "holux"
24582463
case 40: return "concept2"
2464+
case 41: return "shimano"
24592465
case 42: return "one_giant_leap"
24602466
case 43: return "ace_sensor"
24612467
case 44: return "brim_brothers"
@@ -2547,6 +2553,7 @@ fileprivate func rzfit_swift_string_from_manufacturer(_ input : FIT_UINT16) -> S
25472553
case 132: return "cycplus"
25482554
case 133: return "gravaa_byte"
25492555
case 134: return "sigeyi"
2556+
case 135: return "coospo"
25502557
case 255: return "development"
25512558
case 257: return "healthandlife"
25522559
case 258: return "lezyne"
@@ -2602,6 +2609,7 @@ fileprivate func rzfit_swift_string_from_manufacturer(_ input : FIT_UINT16) -> S
26022609
case 308: return "monark_exercise"
26032610
case 309: return "form"
26042611
case 310: return "decathlon"
2612+
case 311: return "syncros"
26052613
case 5759: return "actigraphcorp"
26062614
default: return "manufacturer_\(input)"
26072615
}
@@ -2764,6 +2772,7 @@ fileprivate func rzfit_swift_string_from_garmin_product(_ input : FIT_UINT16) ->
27642772
case 2362: return "vivo_smart_gps_hr_asia"
27652773
case 2368: return "vivo_move"
27662774
case 2379: return "varia_taillight"
2775+
case 2396: return "fr235_asia"
27672776
case 2397: return "fr235_japan"
27682777
case 2398: return "varia_vision"
27692778
case 2406: return "vivo_fit3"
@@ -2815,6 +2824,7 @@ fileprivate func rzfit_swift_string_from_garmin_product(_ input : FIT_UINT16) ->
28152824
case 2769: return "foretrex_601_701"
28162825
case 2772: return "vivo_move_hr"
28172826
case 2713: return "edge_1030"
2827+
case 2787: return "vector_3"
28182828
case 2796: return "fenix5_asia"
28192829
case 2797: return "fenix5s_asia"
28202830
case 2798: return "fenix5x_asia"
@@ -2825,6 +2835,7 @@ fileprivate func rzfit_swift_string_from_garmin_product(_ input : FIT_UINT16) ->
28252835
case 2832: return "vivo_sport_apac"
28262836
case 2833: return "fr935_asia"
28272837
case 2859: return "descent"
2838+
case 2878: return "vivo_fit4"
28282839
case 2886: return "fr645"
28292840
case 2888: return "fr645m"
28302841
case 2891: return "fr30"
@@ -2871,12 +2882,14 @@ fileprivate func rzfit_swift_string_from_garmin_product(_ input : FIT_UINT16) ->
28712882
case 3250: return "marq_expedition"
28722883
case 3251: return "marq_athlete"
28732884
case 3258: return "descent_mk2"
2885+
case 3284: return "gpsmap66i"
28742886
case 3287: return "fenix6S_sport"
28752887
case 3288: return "fenix6S"
28762888
case 3289: return "fenix6_sport"
28772889
case 3290: return "fenix6"
28782890
case 3291: return "fenix6x"
28792891
case 3299: return "hrm_dual"
2892+
case 3300: return "hrm_pro"
28802893
case 3308: return "vivo_move3_premium"
28812894
case 3314: return "approach_s40"
28822895
case 3321: return "fr245m_asia"
@@ -2898,28 +2911,52 @@ fileprivate func rzfit_swift_string_from_garmin_product(_ input : FIT_UINT16) ->
28982911
case 3451: return "marq_athlete_asia"
28992912
case 3469: return "fr45_asia"
29002913
case 3473: return "vivoactive3_daimler"
2914+
case 3498: return "legacy_rey"
2915+
case 3499: return "legacy_darth_vader"
2916+
case 3500: return "legacy_captain_marvel"
2917+
case 3501: return "legacy_first_avenger"
29012918
case 3512: return "fenix6s_sport_asia"
29022919
case 3513: return "fenix6s_asia"
29032920
case 3514: return "fenix6_sport_asia"
29042921
case 3515: return "fenix6_asia"
29052922
case 3516: return "fenix6x_asia"
2923+
case 3535: return "legacy_captain_marvel_asia"
2924+
case 3536: return "legacy_first_avenger_asia"
2925+
case 3537: return "legacy_rey_asia"
2926+
case 3538: return "legacy_darth_vader_asia"
2927+
case 3542: return "descent_mk2s"
29062928
case 3558: return "edge_130_plus"
29072929
case 3570: return "edge_1030_plus"
2930+
case 3578: return "rally_200"
29082931
case 3589: return "fr745"
29092932
case 3600: return "venusq"
2933+
case 3615: return "lily"
29102934
case 3624: return "marq_adventurer"
2935+
case 3638: return "enduro"
29112936
case 3648: return "marq_adventurer_asia"
29122937
case 3639: return "swim2_apac"
29132938
case 3702: return "descent_mk2_asia"
2939+
case 3703: return "venu2"
2940+
case 3704: return "venu2s"
29142941
case 3737: return "venu_daimler_asia"
29152942
case 3739: return "marq_golfer"
29162943
case 3740: return "venu_daimler"
29172944
case 3794: return "fr745_asia"
2945+
case 3809: return "lily_asia"
29182946
case 3812: return "edge_1030_plus_asia"
29192947
case 3813: return "edge_130_plus_asia"
2948+
case 3823: return "approach_s12"
2949+
case 3872: return "enduro_asia"
29202950
case 3837: return "venusq_asia"
29212951
case 3850: return "marq_golfer_asia"
2922-
case 3851: return "venu2plus"
2952+
case 3927: return "approach_g12"
2953+
case 3930: return "descent_mk2s_asia"
2954+
case 3934: return "approach_s42"
2955+
case 3949: return "venu2s_asia"
2956+
case 3950: return "venu2_asia"
2957+
case 3986: return "approach_S12_asia"
2958+
case 4001: return "approach_g12_asia"
2959+
case 4002: return "approach_s42_asia"
29232960
case 10007: return "sdm4"
29242961
case 10014: return "edge_remote"
29252962
case 20533: return "tacx_training_app_win"
@@ -6267,6 +6304,9 @@ fileprivate func rzfit_swift_field_num_to_string_for_session( field_num : FIT_UI
62676304
case 187: return "avg_flow"
62686305
case 199: return "total_fractional_ascent"
62696306
case 200: return "total_fractional_descent"
6307+
case 208: return "avg_core_temperature"
6308+
case 209: return "min_core_temperature"
6309+
case 210: return "max_core_temperature"
62706310
default: return "session_field_num_\(field_num)"
62716311
}
62726312
}
@@ -6410,6 +6450,9 @@ fileprivate func rzfit_swift_field_num_to_string_for_lap( field_num : FIT_UINT16
64106450
case 154: return "avg_flow"
64116451
case 156: return "total_fractional_ascent"
64126452
case 157: return "total_fractional_descent"
6453+
case 158: return "avg_core_temperature"
6454+
case 159: return "min_core_temperature"
6455+
case 160: return "max_core_temperature"
64136456
default: return "lap_field_num_\(field_num)"
64146457
}
64156458
}
@@ -6511,6 +6554,7 @@ fileprivate func rzfit_swift_field_num_to_string_for_record( field_num : FIT_UIN
65116554
case 118: return "ebike_battery_level"
65126555
case 119: return "ebike_assist_mode"
65136556
case 120: return "ebike_assist_level_percent"
6557+
case 139: return "core_temperature"
65146558
default: return "record_field_num_\(field_num)"
65156559
}
65166560
}

0 commit comments

Comments
 (0)