test

Dependencies:   mbed-dev-f303 FastPWM3

Revision:
3:6a0015d88d06
Parent:
1:b8bceb4daed5
Child:
7:dc5f27756e02
diff -r 8724412ad628 -r 6a0015d88d06 PositionSensor/PositionSensor.h
--- a/PositionSensor/PositionSensor.h	Fri Feb 19 04:13:06 2016 +0000
+++ b/PositionSensor/PositionSensor.h	Wed Mar 09 04:00:48 2016 +0000
@@ -13,6 +13,8 @@
     PositionSensorEncoder(int CPR, float offset);
     virtual float GetMechPosition();
     virtual float GetElecPosition();
+    virtual float GetMechVelocity();
+    virtual float GetElecVelocity();
 private:
     InterruptIn *ZPulse;
     DigitalIn *ZSense;
@@ -20,7 +22,7 @@
     virtual void ZeroEncoderCount(void);
     int _CPR;
     //int state;
-    float _offset;
+    float _offset, MechPosition;
 };
 
 #endif
\ No newline at end of file