Fix imports
This commit is contained in:
parent
cc79b8f2b0
commit
a482a80d4a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue