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

Dependencies:   HIDScope QEI mbed

Fork of PID_control_with_lowpass by Jasper Gerth

Revision:
3:9ae6a4a525cf
Parent:
2:707567853e34
Child:
5:43e34b6d66af
diff -r 707567853e34 -r 9ae6a4a525cf main.cpp
--- a/main.cpp	Thu Sep 24 16:26:32 2015 +0000
+++ b/main.cpp	Mon Sep 28 09:18:17 2015 +0000
@@ -151,6 +151,6 @@
             scopedata();
             scopedata_go=false;
         }
-        return 0;
     }
+    return 0; //gives warning: unreachable
 }
\ No newline at end of file