David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
line_sensors.cpp@28:4374035df5e0, 2014-03-01 (annotated)
- Committer:
- DavidEGrayson
- Date:
- Sat Mar 01 03:13:57 2014 +0000
- Revision:
- 28:4374035df5e0
- Parent:
- 10:e4dd36148539
- Child:
- 29:cfcf08d8ac79
Discovered that 4 out of the 6 analog inputs on the mbed are severely messed up. Might need to get a new mbed or do digital filtering (a median of three readings out to work).
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DavidEGrayson | 10:e4dd36148539 | 1 | #include "line_sensors.h" |
DavidEGrayson | 10:e4dd36148539 | 2 | |
DavidEGrayson | 10:e4dd36148539 | 3 | AnalogIn lineSensorsAnalog[LINE_SENSOR_COUNT] = { |
DavidEGrayson | 10:e4dd36148539 | 4 | AnalogIn(p20), // brown wire, left-most sensor |
DavidEGrayson | 10:e4dd36148539 | 5 | AnalogIn(p19), // orange wire, middle sensor |
DavidEGrayson | 28:4374035df5e0 | 6 | AnalogIn(p17), // blue wire, right-most sensor |
DavidEGrayson | 10:e4dd36148539 | 7 | }; |