This is some awesome robot code
Dependencies: mbed-rtos mbed QEI
Fork of ICRSEurobot13 by
Diff: Sensors/Encoders/Encoder.h
- Revision:
- 5:56a5fdd373c9
- Parent:
- 1:8119211eae14
- Child:
- 20:70d651156779
--- a/Sensors/Encoders/Encoder.h Wed Apr 03 17:54:53 2013 +0000 +++ b/Sensors/Encoders/Encoder.h Thu Apr 04 14:44:14 2013 +0000 @@ -13,7 +13,7 @@ Encoder(PinName pGreen, PinName pYellow) : green(pGreen) , yellow(pYellow) - , wheel(pGreen,pYellow, NC, 624) + , wheel(pGreen,pYellow, NC, 0, QEI::X4_ENCODING) { green.mode(PullUp); yellow.mode(PullUp);