Quadrature encoder interface library. - added setPulses()

Fork of QEI by Aaron Berk

Revision:
1:13000c44d4ea
Parent:
0:5c2ad81551aa
--- a/QEI.cpp	Thu Sep 02 16:48:55 2010 +0000
+++ b/QEI.cpp	Sun Oct 18 23:24:11 2015 +0000
@@ -173,6 +173,13 @@
 
 }
 
+void QEI::setPulses(int pulses) {
+ 
+    pulses_      = pulses;
+    revolutions_ = 0;
+ 
+}
+
 int QEI::getCurrentState(void) {
 
     return currState_;