Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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.
