Quadrature encoder interface library.

Fork of QEI by Aaron Berk

Files at this revision

API Documentation at this revision

Comitter:
BramS23
Date:
Mon Oct 30 13:50:51 2017 +0000
Parent:
0:5c2ad81551aa
Commit message:
Changed Homing;

Changed in this revision

QEI.cpp Show annotated file Show diff for this revision Revisions of this file
QEI.h Show annotated file Show diff for this revision Revisions of this file
--- a/QEI.cpp	Thu Sep 02 16:48:55 2010 +0000
+++ b/QEI.cpp	Mon Oct 30 13:50:51 2017 +0000
@@ -166,9 +166,9 @@
 
 }
 
-void QEI::reset(void) {
+void QEI::reset(int Pulses) {
 
-    pulses_      = 0;
+    pulses_      = Pulses;
     revolutions_ = 0;
 
 }
--- a/QEI.h	Thu Sep 02 16:48:55 2010 +0000
+++ b/QEI.h	Mon Oct 30 13:50:51 2017 +0000
@@ -183,7 +183,7 @@
      *
      * Sets the pulses and revolutions count to zero.
      */
-    void reset(void);
+    void reset(int Pulses);
 
     /**
      * Read the state of the encoder.