Skip to content

Commit

Permalink
Parse Cadence.
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Dec 28, 2009
1 parent b76bc59 commit 4cab865
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tcx.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Trackpoint(Base):
'altitude_meters',
'distance_meters',
'heart_rate_bpm',
'cadence',
'sensor_state')


Expand Down Expand Up @@ -78,6 +79,7 @@ def __init__(self):
'DistanceMeters': SetAttrBuilder('distance_meters', float),
'HeartRateBpm': Builder({
'Value': SetAttrBuilder('heart_rate_bpm', int)}),
'Cadence': SetAttrBuilder('cadence', int),
'SensorState': SetAttrBuilder('sensor_state', lambda s: s == 'Present')})

def exit(self, object_stack, name):
Expand Down

0 comments on commit 4cab865

Please sign in to comment.