diff --git a/compLIB/Motor.py b/compLIB/Motor.py index ecd1d83..393152a 100644 --- a/compLIB/Motor.py +++ b/compLIB/Motor.py @@ -16,7 +16,7 @@ class Motor(object): percent = abs(percent) forward = False - adjusted_speed = min(max(0, percent), 100) * MOTOR_PERCENTAGE_MULT + adjusted_speed = int(min(max(0, percent), 100) * MOTOR_PERCENTAGE_MULT) if forward: pwm.setMotorPwm(port * 2, 0)