Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the Sdps field generated by the Garmin Connect app in combination with the Vaaka cadence sensor. #212

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
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
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