Carlo Collodi / kangaroo

Dependencies:   QEI mbed

Revision:
53:978b7fa74080
Parent:
49:3aaa790800ad
--- a/include/motor.hpp	Mon Dec 02 00:00:01 2013 +0000
+++ b/include/motor.hpp	Mon Dec 02 05:16:26 2013 +0000
@@ -26,6 +26,9 @@
         float kp;
         float kd;
         
+                volatile float dAngle;
+
+        
     private:
         Ticker t;
         AnalogIn aIn;
@@ -42,7 +45,6 @@
         volatile int mode;
                 
         volatile float dAngularVelocity;
-        volatile float dAngle;
         volatile float dTorque;
 };