lib/fit/file/definitions.rb in fit-parser-0.0.1 vs lib/fit/file/definitions.rb in fit-parser-0.0.2
- old
+ new
@@ -680,11 +680,11 @@
Fit::File::Definitions.add_field 55, 4, 'active_time', :type => :uint32, :scale => 1000, :unit => 's'
Fit::File::Definitions.add_field 55, 5, 'activity_type', :type => :activity_type
Fit::File::Definitions.add_field 55, 6, 'activity_subtype', :type => :activity_subtype
Fit::File::Definitions.add_field 55, 7, 'activity_level', :type => :activity_level
Fit::File::Definitions.add_field 55, 8, 'distance_16', :type => :uint16, :unit => '100 * m'
-Fit::File::Definitions.add_field 55, 9, 'cycles_16', :type => :uint16, :unit => '2 * cycles ', :unit => '(steps)'
+Fit::File::Definitions.add_field 55, 9, 'cycles_16', :type => :uint16, :unit => '2 * cycles (steps)'
Fit::File::Definitions.add_field 55, 10, 'active_time_16', :type => :uint16, :unit => 's'
Fit::File::Definitions.add_field 55, 11, 'local_timestamp', :type => :local_date_time
Fit::File::Definitions.add_field 55, 12, 'temperature', :type => :sint16, :scale => 100, :unit => 'C'
Fit::File::Definitions.add_field 55, 14, 'temperature_min', :type => :sint16, :scale => 100, :unit => 'C'
Fit::File::Definitions.add_field 55, 15, 'temperature_max', :type => :sint16, :scale => 100, :unit => 'C'
@@ -701,5 +701,21 @@
Fit::File::Definitions.add_name 145, 'memo_glob'
Fit::File::Definitions.add_field 145, 250, 'part_index', :type => :uint32
Fit::File::Definitions.add_field 145, 0, 'memo', :type => :byte
Fit::File::Definitions.add_field 145, 1, 'message_number', :type => :uint16
Fit::File::Definitions.add_field 145, 2, 'message_index', :type => :message_index
+
+# =============================================================================
+# Warning, the definition below are not part of the official fit format
+# definition. They have been obtained by deduction from Garmin Swim files
+# =============================================================================
+# session additions
+Fit::File::Definitions.add_field 18, 33, 'length_count', :type => :uint16
+Fit::File::Definitions.add_field 18, 78, 'total_swim_time', :type => :uint32, :scale => 1000
+Fit::File::Definitions.add_field 18, 79, 'average_stroke', :type => :uint16, :scale => 10
+Fit::File::Definitions.add_field 18, 80, 'swolf', :type => :uint16
+
+# lap additions
+Fit::File::Definitions.add_field 19, 70, 'swim_time', :type => :uint32, :scale => 1000
+Fit::File::Definitions.add_field 19, 72, 'average_stroke', :type => :uint16, :scale => 10
+Fit::File::Definitions.add_field 19, 73, 'swolf', :type => :uint16
+