Originally posted by Gunghouk
View Post
The step reponse is really nice.
Just two lines of code
PHP Code:
// IIR low-pass filter of pot readings
potReadingY = potReadingY - (potReadingY >> 4) + potReading;
potReading = potReadingY >> 4;
Comment