You've got better friends than that.
HenrikOlsson for instance ...
PID-filter routine (2nd try).
http://www.picbasic.co.uk/forum/showthread.php?t=5874
I've used it. It works great.
It's a little tricky to find the correct constants. But trial and error usually works.
Although there is a purposeful method to tune the loop.
<br>
Bookmarks