David's dead reckoning code for the LVBots competition on March 6th. Uses the mbed LPC1768, DRV8835, QTR-3RC, and two DC motors with encoders.
Dependencies: PololuEncoder Pacer mbed GeneralDebouncer
Diff: line_sensors.cpp
- Revision:
- 10:e4dd36148539
- Child:
- 28:4374035df5e0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/line_sensors.cpp Sat Feb 22 04:44:44 2014 +0000 @@ -0,0 +1,7 @@ +#include "line_sensors.h" + +AnalogIn lineSensorsAnalog[LINE_SENSOR_COUNT] = { + AnalogIn(p20), // brown wire, left-most sensor + AnalogIn(p19), // orange wire, middle sensor + AnalogIn(p18), // blue wire, right-most sensor +}; \ No newline at end of file