Buggy bois / Mbed 2 deprecated headache

Dependencies:   mbed

Revision:
13:521d6c6e7042
Parent:
11:78c645fb76cd
diff -r 11d203351eb0 -r 521d6c6e7042 WheelControl/Wheel.h
--- a/WheelControl/Wheel.h	Mon Apr 29 00:57:32 2019 +0000
+++ b/WheelControl/Wheel.h	Mon Apr 29 09:40:30 2019 +0000
@@ -60,6 +60,11 @@
         return angularVelocity;
     }
     
+    void resetPID()
+    {
+        controller.reset();
+    }
+    
     //only called once during initialization to calculate max angular velocity 
     //dir = direction, do opposite for each wheel just so your buggy doesn't move FORWARD but rather rotates
     void init(int dir)