Quadrature encoder interface library with distance function

Dependents:   QEI_with_distance wheelchaircontrol wheelchaircontrolRos wheelchaircontrol ... more

Fork of QEI by Aaron Berk

Revision:
1:f57640259245
Parent:
0:5c2ad81551aa
Child:
2:2a173fdae3ca
--- a/QEI.h	Thu Sep 02 16:48:55 2010 +0000
+++ b/QEI.h	Wed Jul 25 22:51:54 2018 +0000
@@ -206,7 +206,11 @@
      *
      * @return Number of revolutions which have occured on the index channel.
      */
-    int getRevolutions(void);
+    
+    
+    float getRevolutions(void);
+
+    float QEI::getDistance(float radius);
 
 private:
 
@@ -232,7 +236,7 @@
     InterruptIn channelB_;
     InterruptIn index_;
 
-    int          pulsesPerRev_;
+    float        pulsesPerRev_;
     int          prevState_;
     int          currState_;