PID control with a lowpass filter to make the motor follow pot1

Dependencies:   HIDScope QEI mbed

Revision:
2:707567853e34
Parent:
1:49f60db70b5a
--- a/main.cpp	Thu Sep 24 16:24:59 2015 +0000
+++ b/main.cpp	Thu Sep 24 16:26:32 2015 +0000
@@ -9,7 +9,7 @@
 QEI encoder1 (D12,D13,NC,32); // first b then a for clockwise +
 
 //ingangen
-AnalogIn pot1(A0);
+AnalogIn pot1(A2);
 
 //uitgangen
 DigitalOut motor1_direction(D7);// draairichting motor 1 (1 is CW encoder als je daar op kijkt en CW shaft als je daar op kijkt)