Reset function wordt anders gebruikt
Fork of QEI by
Revision 1:7d084d9869eb, committed 2017-10-27
- 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 |
diff -r 5c2ad81551aa -r 7d084d9869eb QEI.cpp --- 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; }
diff -r 5c2ad81551aa -r 7d084d9869eb QEI.h --- 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.