Fix imports

This commit is contained in:
Konstantin Lampalzer 2021-01-15 18:35:13 +01:00
parent cc79b8f2b0
commit a482a80d4a
No known key found for this signature in database
GPG key ID: 9A60A522835A2AD9

View file

@ -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)