a
Dependents: wheelchaircontrol wheelchaircontrol2 wheelchaircontrol3 wheelchaircontrol4 ... more
Diff: QEI.h
- Revision:
- 5:dc96133b5129
- Parent:
- 2:2a173fdae3ca
diff -r 0035b165ecc4 -r dc96133b5129 QEI.h --- a/QEI.h Fri Aug 31 17:09:18 2018 +0000 +++ b/QEI.h Sat Oct 27 10:09:39 2018 +0000 @@ -206,7 +206,7 @@ * * @return Number of revolutions which have occured on the index channel. */ - + float getVelosity(); float getRevolutions(void); @@ -237,9 +237,14 @@ InterruptIn index_; float pulsesPerRev_; + float oldDistance_; + float newDistance_; + float velosity_; int prevState_; int currState_; - + + Timer ti; + volatile int pulses_; volatile int revolutions_;