pycycling.ftms_parsers.control_point module¶
- class pycycling.ftms_parsers.control_point.ControlPointResponse(request_code_enum, result_code_enum)¶
Bases:
tuple
- request_code_enum¶
Alias for field number 0
- result_code_enum¶
Alias for field number 1
- class pycycling.ftms_parsers.control_point.FTMSControlPointOpCode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
Enum
- REQUEST_CONTROL = 0¶
- RESET = 1¶
- RESPONSE_CODE = 128¶
- SET_INDOOR_BIKE_SIMULATION_PARAMETERS = 17¶
- SET_SPIN_DOWN_CONTROL = 19¶
- SET_TARGETED_CADENCE = 20¶
- SET_TARGETED_DISTANCE = 12¶
- SET_TARGETED_EXPENDED_ENERGY = 9¶
- SET_TARGETED_NUMBER_OF_STEPS = 10¶
- SET_TARGETED_NUMBER_OF_STRIDES = 11¶
- SET_TARGETED_TIME_IN_FIVE_HEART_RATE_ZONES = 16¶
- SET_TARGETED_TIME_IN_THREE_HEART_RATE_ZONES = 15¶
- SET_TARGETED_TIME_IN_TWO_HEART_RATE_ZONES = 14¶
- SET_TARGETED_TRAINING_TIME = 13¶
- SET_TARGET_HEART_RATE = 6¶
- SET_TARGET_INCLINE = 3¶
- SET_TARGET_POWER = 5¶
- SET_TARGET_RESISTANCE_LEVEL = 4¶
- SET_TARGET_SPEED = 2¶
- SET_WHEEL_CIRCUMFERENCE = 18¶
- START_OR_RESUME = 7¶
- STOP_OR_PAUSE = 8¶
- class pycycling.ftms_parsers.control_point.FTMSControlPointResponseResultCode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶
Bases:
Enum
- CONTROL_NOT_PERMITTED = 5¶
- INCORRECT_PARAMETER = 3¶
- NOT_SUPPORTED = 2¶
- OPERATION_FAILED = 4¶
- SUCCESS = 1¶
- pycycling.ftms_parsers.control_point.form_ftms_control_command(opcode: FTMSControlPointOpCode, parameter: int = 0)[source]¶
Form a FTMS control command message :param opcode: FTMSControlPointOpCode :param parameter: scalar or list of scalar :return: bytearray
- pycycling.ftms_parsers.control_point.parse_control_point_response(message: bytearray) ControlPointResponse [source]¶