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.
Dependents: Nucleo_Motor Nucleo_Motor mbed_test_enc mbed_touteki_MR1 ... more
Fork of QEI2 by
Revision 5:49fa8827718d, committed 2015-09-23
- Comitter:
- kikoaac
- Date:
- Wed Sep 23 06:01:56 2015 +0000
- Parent:
- 3:f285adb565b1
- Commit message:
- ?????????
;
Changed in this revision
QEI.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/QEI.h Mon Aug 31 01:05:02 2015 +0000 +++ b/QEI.h Wed Sep 23 06:01:56 2015 +0000 @@ -22,7 +22,6 @@ return *this; } public: - typedef enum Encoding { X2_ENCODING, @@ -56,13 +55,13 @@ void state(int i); private: Timer *timer; - Ticker Tick; + //Ticker Tick; double RPM , RPS ,RPMS , RPUS; float gettime() { timer->start(); static float prev_time; float a = timer->read()-prev_time; - prev_time=a; + prev_time=timer->read(); return a; }