Carlo Collodi / kangaroo

Dependencies:   QEI mbed

Revision:
28:21773a6fb6df
Parent:
26:53b793b7a82f
Child:
29:33c5c61f1068
Child:
35:a4e89e78d034
diff -r 4db137d6ea6e -r 21773a6fb6df include/motor.hpp
--- a/include/motor.hpp	Sun Nov 24 06:02:47 2013 +0000
+++ b/include/motor.hpp	Sun Nov 24 19:04:01 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, QEI &enc);
         
         void start();
         void stop();
         void setTorque(float t);
         void Control();
-        float getMotorPos();
+        int getPos();
         float getCurrent();
         static float filterLowPass(float old, float currentIn, float alphar);
         void setPos(float pos);