From a482a80d4a5aeb01d60e356549e90b93c16c6dc2 Mon Sep 17 00:00:00 2001 From: Konstantin Lampalzer Date: Fri, 15 Jan 2021 18:35:13 +0100 Subject: [PATCH] Fix imports --- compLIB/Motor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)