From c8797cb5bcd20dd78e191882988c1d68487c6e61 Mon Sep 17 00:00:00 2001 From: tymek Date: Fri, 1 Aug 2025 19:06:09 +0200 Subject: [PATCH] pid steering --- steer-pid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steer-pid.py b/steer-pid.py index 3494041..1942f26 100644 --- a/steer-pid.py +++ b/steer-pid.py @@ -107,6 +107,7 @@ 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)) + print(p, d, i, speedL, speedR) motorL.start(int(speedL)) motorR.start(int(speedR)) xp = x @@ -116,7 +117,6 @@ for chunk in stream.iter_content(chunk_size=1024): cv2.putText(frame, f"P:{int(p)} D:{int(d)} I:{int(i)}", (10, 30), cv2.FONT_HERSHEY_SIMPLEX, 0.6, (0, 255, 0), 2) #print("PDI: ", p, d, dtms, i) - print(p, d, i, speedL, speedR) else: ip = 0 # ============================