pycycling.ftms_parsers.fitness_machine_status module¶
- class pycycling.ftms_parsers.fitness_machine_status.FitnessMachineStatus(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
Enum
- CONTROL_PERMISSION_LOST = 23¶
- NEW_DISTANCE = 14¶
- NEW_EXPENDED_ENERGY = 11¶
- NEW_FIVE_HEART_RATE_ZONE_TARGET_TIME = 18¶
- NEW_HEART_RATE = 10¶
- NEW_INCLINATION = 7¶
- NEW_INDOOR_BIKE_SIMULATION_PARAMETERS = 19¶
- NEW_NUMBER_OF_STEPS = 12¶
- NEW_NUMBER_OF_STRIDES = 13¶
- NEW_POWER = 9¶
- NEW_RESISTANCE = 8¶
- NEW_SPEED = 6¶
- NEW_SPIN_DOWN_STATUS = 21¶
- NEW_TARGET_CADENCE = 22¶
- NEW_THREE_HEART_RATE_ZONE_TARGET_TIME = 17¶
- NEW_TRAINING_TIME = 15¶
- NEW_TWO_HEART_RATE_ZONE_TARGET_TIME = 16¶
- NEW_WHEEL_CIRCUMFERENCE = 20¶
- PAUSED_BY_USER = 3¶
- RESERVED_FOR_FUTURE_USE = 0¶
- RESET = 1¶
- STARTED_BY_USER = 5¶
- STOPPED_BY_SAFETY_KEY = 4¶
- STOPPED_BY_USER = 2¶
- class pycycling.ftms_parsers.fitness_machine_status.FitnessMachineStatusMessage(status, value, unit)¶
Bases:
tuple
- status¶
Alias for field number 0
- unit¶
Alias for field number 2
- value¶
Alias for field number 1
- class pycycling.ftms_parsers.fitness_machine_status.FiveZoneHR(very_light, light, moderate, hard, maximum)¶
Bases:
tuple
- hard¶
Alias for field number 3
- light¶
Alias for field number 1
- maximum¶
Alias for field number 4
- moderate¶
Alias for field number 2
- very_light¶
Alias for field number 0
- class pycycling.ftms_parsers.fitness_machine_status.IndoorBikeSimulationParameters(wind_speed, grade, coefficient_of_rolling_resistance, wind_resistance_coefficient)¶
Bases:
tuple
- coefficient_of_rolling_resistance¶
Alias for field number 2
- grade¶
Alias for field number 1
- wind_resistance_coefficient¶
Alias for field number 3
- wind_speed¶
Alias for field number 0
- class pycycling.ftms_parsers.fitness_machine_status.SpinDownStatusValue(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
Enum
- ERROR = 3¶
- RESERVED_FOR_FUTURE_USE = 0¶
- SPIN_DOWN_REQUESTED = 1¶
- STOP_PEDALING = 4¶
- SUCCESS = 2¶
- class pycycling.ftms_parsers.fitness_machine_status.ThreeZoneHR(very_light, light, moderate)¶
Bases:
tuple
- light¶
Alias for field number 1
- moderate¶
Alias for field number 2
- very_light¶
Alias for field number 0
- class pycycling.ftms_parsers.fitness_machine_status.TwoZoneHR(fat_burn, fitness)¶
Bases:
tuple
- fat_burn¶
Alias for field number 0
- fitness¶
Alias for field number 1
- pycycling.ftms_parsers.fitness_machine_status.parse_fitness_machine_status(message: bytearray) FitnessMachineStatusMessage [source]¶
A tuple with three items: 1. A FitnessMachineStatus enum 2. Associated data (dictionary or namedtuple()) 3. Units