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

line_sensors.cpp

Committer:
DavidEGrayson
Date:
2014-02-22
Revision:
10:e4dd36148539
Child:
28:4374035df5e0

File content as of revision 10:e4dd36148539:

#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
};