David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
main.cpp@9:9734347b5756, 2014-02-22 (annotated)
- Committer:
- DavidEGrayson
- Date:
- Sat Feb 22 03:03:37 2014 +0000
- Revision:
- 9:9734347b5756
- Parent:
- 8:78b1ff957cba
- Child:
- 10:e4dd36148539
Made verything use CamelCase.;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DavidEGrayson | 0:e77a0edb9878 | 1 | #include <mbed.h> |
DavidEGrayson | 8:78b1ff957cba | 2 | #include <Pacer.h> |
DavidEGrayson | 0:e77a0edb9878 | 3 | |
DavidEGrayson | 8:78b1ff957cba | 4 | #include "motors.h" |
DavidEGrayson | 8:78b1ff957cba | 5 | #include "encoders.h" |
DavidEGrayson | 9:9734347b5756 | 6 | #include "leds.h" |
DavidEGrayson | 8:78b1ff957cba | 7 | #include "pc_serial.h" |
DavidEGrayson | 9:9734347b5756 | 8 | #include "test.h" |
DavidEGrayson | 0:e77a0edb9878 | 9 | |
DavidEGrayson | 2:968338353aef | 10 | int main() |
DavidEGrayson | 2:968338353aef | 11 | { |
DavidEGrayson | 2:968338353aef | 12 | pc.baud(115200); |
DavidEGrayson | 2:968338353aef | 13 | |
DavidEGrayson | 2:968338353aef | 14 | // Enable pull-ups on encoder pins and give them a chance to settle. |
DavidEGrayson | 9:9734347b5756 | 15 | encodersInit(); |
DavidEGrayson | 9:9734347b5756 | 16 | motorsInit(); |
DavidEGrayson | 4:1b20a11765c8 | 17 | |
DavidEGrayson | 8:78b1ff957cba | 18 | // Test routines |
DavidEGrayson | 9:9734347b5756 | 19 | //testMotors(); |
DavidEGrayson | 9:9734347b5756 | 20 | testEncoders(); |
DavidEGrayson | 2:968338353aef | 21 | |
DavidEGrayson | 4:1b20a11765c8 | 22 | while(1) |
DavidEGrayson | 4:1b20a11765c8 | 23 | { |
DavidEGrayson | 9:9734347b5756 | 24 | |
DavidEGrayson | 0:e77a0edb9878 | 25 | } |
DavidEGrayson | 0:e77a0edb9878 | 26 | } |