David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
encoders.h@57:99bec7fab454, 2015-04-16 (annotated)
- Committer:
- DavidEGrayson
- Date:
- Thu Apr 16 22:00:15 2015 +0000
- Revision:
- 57:99bec7fab454
- Parent:
- 12:835a4d24ae3b
Doubled the encoder counts for indicating the end of the course because we might have to start a little bit back from the finish line.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DavidEGrayson | 8:78b1ff957cba | 1 | #pragma once |
DavidEGrayson | 8:78b1ff957cba | 2 | |
DavidEGrayson | 8:78b1ff957cba | 3 | #include <PololuEncoder.h> |
DavidEGrayson | 8:78b1ff957cba | 4 | |
DavidEGrayson | 12:835a4d24ae3b | 5 | #define ENCODER_LEFT 0x00 |
DavidEGrayson | 12:835a4d24ae3b | 6 | #define ENCODER_RIGHT 0x01 |
DavidEGrayson | 8:78b1ff957cba | 7 | |
DavidEGrayson | 8:78b1ff957cba | 8 | extern PololuEncoderBuffer encoderBuffer; |
DavidEGrayson | 9:9734347b5756 | 9 | extern PololuEncoder encoderLeft, encoderRight; |
DavidEGrayson | 8:78b1ff957cba | 10 | |
DavidEGrayson | 9:9734347b5756 | 11 | void encodersInit(); |