From 0ea853623a26a52a4df5afaaf0ba0c74194f3569 Mon Sep 17 00:00:00 2001 From: tymek Date: Thu, 31 Jul 2025 18:34:40 +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 8a64478..adb5e16 100644 --- a/steer-pid.py +++ b/steer-pid.py @@ -106,8 +106,8 @@ for chunk in stream.iter_content(chunk_size=1024): k = wp * p + wi * i + wd * d - motorL.start(-v * min(100 - k, 100)) - motorR.start(v * min(100 - k, 100)) + motorL.start(-v * min(100 + k, 100)) + motorR.start(v * min(100 + k, 100)) xp = x ip += i