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.
Diff: QEI.h
- Revision:
- 1:cf23e9e3f5b8
- Parent:
- 0:a24686ca50ab
--- a/QEI.h Fri Apr 17 06:44:34 2015 +0000
+++ b/QEI.h Wed Feb 26 03:06:04 2020 +0000
@@ -41,8 +41,8 @@
int getAng_rev();
double getAngle();
- double getSumangle();
- double getRPM();
+ float getSumangle();
+ float getRPM();
double getRPS();
double getRPMS();
double getRPUS();
@@ -50,7 +50,7 @@
private:
Timer Mper , Rper ,MSper ,USper;
Ticker Tick;
- double RPM , RPS ,RPMS , RPUS;
+ float RPM , RPS ,RPMS , RPUS;
void encode(void);
@@ -66,7 +66,7 @@
int prevState_;
int currState_;
- double angle_ , sumangle;
+ float angle_ , sumangle;
int angle_pulses;
volatile int pulses_;
volatile int revolutions_;