diff --git a/steer-pid.py b/steer-pid.py index 752e1a0..02e93dd 100644 --- a/steer-pid.py +++ b/steer-pid.py @@ -107,8 +107,8 @@ for chunk in stream.iter_content(chunk_size=1024): speedL = max(-99, -v * min(100 + k, 99)) speedR = max(-99, v * min(100 - k, 99)) - motorL.start(speedL) - motorR.start(speedR) + motorL.start(int(speedL)) + motorR.start(int(speedR)) xp = x ip = i