DRV8323RS Version
Dependencies: mbed-dev-f303 FastPWM3
Diff: PositionSensor/PositionSensor.h
- Revision:
- 38:67e4e1453a4b
- Parent:
- 37:c0f352d6e8e3
- Child:
- 47:e1196a851f76
diff -r c0f352d6e8e3 -r 67e4e1453a4b PositionSensor/PositionSensor.h --- a/PositionSensor/PositionSensor.h Fri Apr 13 13:50:54 2018 +0000 +++ b/PositionSensor/PositionSensor.h Mon May 14 20:59:02 2018 +0000 @@ -4,6 +4,7 @@ public: virtual void Sample(void) = 0; virtual float GetMechPosition() {return 0.0f;} + virtual float GetMechPositionFixed() {return 0.0f;} virtual float GetElecPosition() {return 0.0f;} virtual float GetMechVelocity() {return 0.0f;} virtual float GetElecVelocity() {return 0.0f;} @@ -45,6 +46,7 @@ PositionSensorAM5147(int CPR, float offset, int ppairs); virtual void Sample(); virtual float GetMechPosition(); + virtual float GetMechPositionFixed(); virtual float GetElecPosition(); virtual float GetMechVelocity(); virtual float GetElecVelocity();