Carlo Collodi / kangaroo

Dependencies:   QEI mbed

Revision:
35:a4e89e78d034
Parent:
28:21773a6fb6df
Child:
37:bf257a0154db
--- a/include/motor.hpp	Sun Nov 24 19:04:01 2013 +0000
+++ b/include/motor.hpp	Sun Nov 24 20:18:17 2013 +0000
@@ -7,13 +7,13 @@
 class Motor {
 
     public:
-        Motor(PinName aPin, PinName fPin, PinName bPin, PinName pwmPin, QEI &enc);
+        Motor(PinName aPin, PinName fPin, PinName bPin, PinName pwmPin, PinName encA, PinName encB);
         
         void start();
         void stop();
         void setTorque(float t);
         void Control();
-        int getPos();
+        float getMotorPos();
         float getCurrent();
         static float filterLowPass(float old, float currentIn, float alphar);
         void setPos(float pos);