From 45e6a0449ceada2447ef2727b2c86b48b4f10e9b Mon Sep 17 00:00:00 2001 From: tymek Date: Thu, 31 Jul 2025 18:39:56 +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 4b8c592..4c376f1 100644 --- a/steer-pid.py +++ b/steer-pid.py @@ -101,7 +101,7 @@ for chunk in stream.iter_content(chunk_size=1024): v = 0.25 p = -x - d = (x - xp) / dtms * 1000 + d = (x - xp) * 1000 / dtms i = mri * ip + x * dtms k = wp * p + wi * i + wd * d