added setPulses()
Fork of QEI by
Diff: QEI.cpp
- Revision:
- 1:378b29004b9a
- Parent:
- 0:5c2ad81551aa
--- a/QEI.cpp Thu Sep 02 16:48:55 2010 +0000 +++ b/QEI.cpp Thu Oct 22 23:19:33 2015 +0000 @@ -173,6 +173,13 @@ } +void QEI::setPulses(int p) { + + pulses_ = p; + revolutions_ = 0; + +} + int QEI::getCurrentState(void) { return currState_;