Quadrature encoder interface library.
Fork of QEI by
Diff: QEI.cpp
- Revision:
- 2:d811f926cf4a
- Parent:
- 1:aea205976bf8
diff -r aea205976bf8 -r d811f926cf4a QEI.cpp --- a/QEI.cpp Tue Jul 28 18:57:19 2015 +0000 +++ b/QEI.cpp Wed Jul 29 04:39:57 2015 +0000 @@ -141,8 +141,9 @@ revolutions_ = 0; pulsesPerRev_ = pulsesPerRev; encoding_ = encoding; -channelA_.mode(intRes); -channelB_.mode(intRes); + channelA_.mode(intRes); + channelB_.mode(intRes); + //Workout what the current state is. int chanA = channelA_.read(); int chanB = channelB_.read();