Buggy bois / Mbed 2 deprecated headache

Dependencies:   mbed

Revision:
13:521d6c6e7042
Parent:
8:5ed6685f6edd
--- a/PID.h	Mon Apr 29 00:57:32 2019 +0000
+++ b/PID.h	Mon Apr 29 09:40:30 2019 +0000
@@ -82,6 +82,13 @@
         return   prevControlAction;
     }
     
+    void reset()
+    {
+        prevControlAction = 0;
+        PrevPrevErr = 0;
+        PrevErr = 0;
+    }
+    
 };
 
 //(((temp-inMin)/(inMax - inMin))*(outMax-outMin))+outMin
\ No newline at end of file