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 foc-ed_in_the_bot_compact by
Diff: PositionSensor/PositionSensor.h
- Revision:
- 9:074575151e4b
- Parent:
- 0:bac9c3a3a6ca
diff -r a6669248ce4d -r 074575151e4b PositionSensor/PositionSensor.h
--- a/PositionSensor/PositionSensor.h Fri Mar 18 12:07:14 2016 +0000
+++ b/PositionSensor/PositionSensor.h Tue May 17 06:44:09 2016 +0000
@@ -10,7 +10,7 @@
class PositionSensorEncoder: public PositionSensor {
public:
- PositionSensorEncoder(int CPR, float offset);
+ PositionSensorEncoder(int cpr, float offset);
virtual float GetMechPosition();
virtual float GetElecPosition();
private:
@@ -18,7 +18,7 @@
DigitalIn *ZSense;
DigitalOut *ZTest;
void ZeroEncoderCount(void);
- int _CPR;
+ int _cpr;
int state;
float _offset;
};
