pid test
Fork of AVEncoder by
Revision 1:0e90c815bcbc, committed 2015-11-21
- Comitter:
- jimmery
- Date:
- Sat Nov 21 03:10:22 2015 +0000
- Parent:
- 0:a32ab75adcad
- Commit message:
- pid test;
Changed in this revision
AVEncoder.cpp | Show annotated file Show diff for this revision Revisions of this file |
AVEncoder.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r a32ab75adcad -r 0e90c815bcbc AVEncoder.cpp --- a/AVEncoder.cpp Tue Nov 03 06:12:30 2015 +0000 +++ b/AVEncoder.cpp Sat Nov 21 03:10:22 2015 +0000 @@ -45,7 +45,7 @@ m_pulses = 0; } -unsigned long int AVEncoder::getPulses() { +long int AVEncoder::getPulses() { return m_pulses; }
diff -r a32ab75adcad -r 0e90c815bcbc AVEncoder.h --- a/AVEncoder.h Tue Nov 03 06:12:30 2015 +0000 +++ b/AVEncoder.h Sat Nov 21 03:10:22 2015 +0000 @@ -42,10 +42,10 @@ public: AVEncoder(PinName channelA, PinName channelB); - unsigned long int getPulses(); + long int getPulses(); void reset(); private: - unsigned long int m_pulses; + long int m_pulses; InterruptIn chanA; InterruptIn chanB; void incrementCount();