diff --git a/steer-pid.py b/steer-pid.py index fcb2252..f35baf4 100644 --- a/steer-pid.py +++ b/steer-pid.py @@ -101,8 +101,8 @@ for chunk in stream.iter_content(chunk_size=1024): v = 0.25 p = -x - d = (x - xp) * 1000 / dtms - i = mri * ip + x * dtms / 10000 + d = (x - xp) * 1000 / -dtms + i = mri * ip + x * dtms / -10000 k = wp * p + wi * i + wd * d