Skip to content

Commit

Permalink
Support the Sdps field generated by the Garmin Connect app in combina…
Browse files Browse the repository at this point in the history
…tion with the Vaaka cadence sensor.

Check feature #209
  • Loading branch information
raju-bitter authored and time4tea committed Sep 14, 2024
1 parent 783c24e commit 8e65ef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions gopro_overlay/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def garmin_to_gps(v):
"gps_accuracy": lambda f, u: {"dop": u.Quantity(f.value)},
"power": lambda f, u: {"power": u.Quantity(f.value, u.watt)},
"grade": lambda f, u: {"grad": u.Quantity(f.value)},
"Sdps": lambda f, u: {"sdps": u.Quantity(f.value, u.cm)},
}


Expand Down
1 change: 1 addition & 0 deletions gopro_overlay/layout_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ def metric_accessor_from(name: str) -> Callable[[Entry], Optional[pint.Quantity]
"ori.yaw": lambda e: e.ori.yaw if e.ori else None,
"lat": lambda e: units.Quantity(e.point.lat, units.location),
"lon": lambda e: units.Quantity(e.point.lon, units.location),
"sdps": lambda e: e.sdps, # Vaaka cadence sensor distance-per-stroke field
}
if name in accessors:
return accessors[name]
Expand Down

0 comments on commit 8e65ef6

Please sign in to comment.