Carlo Collodi / kangaroo

Dependencies:   QEI mbed

Revision:
49:3aaa790800ad
Parent:
44:3566c5699ba6
Child:
53:978b7fa74080
--- a/include/motor.hpp	Sun Dec 01 22:19:48 2013 +0000
+++ b/include/motor.hpp	Sun Dec 01 23:43:58 2013 +0000
@@ -14,12 +14,14 @@
         void setTorque(float t);
         void Control();
         int getPos();
+        float getAngle();
         float getCurrent();
         static float filterLowPass(float old, float currentIn, float alphar);
         void setPos(float pos);
         void setVel(float vel);
         void setPosVel(float pos, float vel);
         void zero();
+        void calibAngle(float ang);
         
         float kp;
         float kd;