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:
- 8:70122bad5f90
- Parent:
- 0:bac9c3a3a6ca
diff -r caebf421f288 -r 70122bad5f90 PositionSensor/PositionSensor.h
--- a/PositionSensor/PositionSensor.h Wed Mar 30 06:50:11 2016 +0000
+++ b/PositionSensor/PositionSensor.h Sat Apr 23 21:29:32 2016 +0000
@@ -5,6 +5,7 @@
public:
virtual float GetMechPosition() {return 0.0f;}
virtual float GetElecPosition() {return 0.0f;}
+ virtual int GetRawPosition() {return 0;}
};
@@ -13,6 +14,7 @@
PositionSensorEncoder(int CPR, float offset);
virtual float GetMechPosition();
virtual float GetElecPosition();
+ virtual int GetRawPosition();
private:
InterruptIn *ZPulse;
DigitalIn *ZSense;
