From 48027822d8e6a5a1ffb1510f5ba5379dba1347f7 Mon Sep 17 00:00:00 2001 From: tymek Date: Fri, 1 Aug 2025 18:34:38 +0200 Subject: [PATCH] pid steering --- steer-pid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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