Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/activity_parser/fit_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package normalizes those to degrees, km and km/h. Vertical rates (``avg_vam``,
``vertical_speed``, ...) are left in m/s.

The tables are transcribed from the FIT profile in garmin-fit-sdk 21.212.0, covering
The tables are transcribed from the FIT profile in garmin-fit-sdk 21.217.0, covering
the ``record``, ``lap`` and ``session`` message types. ``tests/test_fit_fields.py``
checks that the installed profile's fields are covered.
"""
Expand Down Expand Up @@ -34,10 +34,15 @@
LAP_UNITS: dict[str, float] = {
"end_position_lat": SEMICIRCLES_TO_DEGREES,
"end_position_long": SEMICIRCLES_TO_DEGREES,
"nec_lat": SEMICIRCLES_TO_DEGREES,
"nec_long": SEMICIRCLES_TO_DEGREES,
"start_position_lat": SEMICIRCLES_TO_DEGREES,
"start_position_long": SEMICIRCLES_TO_DEGREES,
"swc_lat": SEMICIRCLES_TO_DEGREES,
"swc_long": SEMICIRCLES_TO_DEGREES,
"avg_stroke_distance": M_TO_KM,
"total_distance": M_TO_KM,
"avg_grade_adjusted_speed": MPS_TO_KMH,
"avg_speed": MPS_TO_KMH,
"enhanced_avg_speed": MPS_TO_KMH,
"enhanced_max_speed": MPS_TO_KMH,
Expand All @@ -56,6 +61,7 @@
"avg_stroke_distance": M_TO_KM,
"total_distance": M_TO_KM,
"avg_ball_speed": MPS_TO_KMH,
"avg_grade_adjusted_speed": MPS_TO_KMH,
"avg_speed": MPS_TO_KMH,
"enhanced_avg_speed": MPS_TO_KMH,
"enhanced_max_speed": MPS_TO_KMH,
Expand Down
Loading