a
Dependents: wheelchaircontrol wheelchaircontrol2 wheelchaircontrol3 wheelchaircontrol4 ... more
Diff: QEI.h
- Revision:
- 1:f57640259245
- Parent:
- 0:5c2ad81551aa
- Child:
- 2:2a173fdae3ca
diff -r 5c2ad81551aa -r f57640259245 QEI.h --- a/QEI.h Thu Sep 02 16:48:55 2010 +0000 +++ b/QEI.h Wed Jul 25 22:51:54 2018 +0000 @@ -206,7 +206,11 @@ * * @return Number of revolutions which have occured on the index channel. */ - int getRevolutions(void); + + + float getRevolutions(void); + + float QEI::getDistance(float radius); private: @@ -232,7 +236,7 @@ InterruptIn channelB_; InterruptIn index_; - int pulsesPerRev_; + float pulsesPerRev_; int prevState_; int currState_;