Reset function wordt anders gebruikt

Fork of QEI by Aaron Berk

Files at this revision

API Documentation at this revision

Comitter:
jordymorsinkhof
Date:
Fri Oct 27 11:44:58 2017 +0000
Parent:
0:5c2ad81551aa
Commit message:
Reset function (pulses) aangepast

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	Fri Oct 27 11:44:58 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	Fri Oct 27 11:44:58 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.