Bicycle and foot route profiles (Valhalla bicycle/pedestrian costing); hiking trail colours in the elevation profile; power, splits and best efforts in the profile; TCX import; FIT course export
This commit is contained in:
1 parent
4c704045c5
commit
f8755ea65a
21 files changed
+634
-40
No files matched your search
+2
-1
@@ -231,7 +231,7 @@ module Maptool
|
||||
end
|
||||
private_class_method :process_point
|
||||
|
||||
# Heart rate/cadence/speed live in a device-specific <extensions> block
|
||||
# Heart rate/cadence/speed/power live in a device-specific <extensions> block
|
||||
# (usually Garmin's own TrackPointExtension) — matched by local element
|
||||
# name only (`Element#name` already strips the namespace prefix), so
|
||||
# this doesn't care which extension schema a given file actually
|
||||
@@ -258,6 +258,7 @@ module Maptool
|
||||
when "hr" then values[:heart_rate_bpm] = child.text&.strip&.to_i
|
||||
when "cad" then values[:cadence_rpm] = child.text&.strip&.to_i
|
||||
when "speed" then values[:speed_mps] = child.text&.strip&.to_f
|
||||
when "power", "PowerInWatts" then values[:power_w] = child.text&.strip&.to_i
|
||||
end
|
||||
collect_extension_values(child, values)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user