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

Committer:
DavidEGrayson
Date:
Tue Mar 04 02:09:54 2014 +0000
Revision:
30:84be2d602dc0
Parent:
29:cfcf08d8ac79
Child:
31:739b91331f31
Seems like the QTR-3RC could work, based on my tests on P10.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
DavidEGrayson 10:e4dd36148539 1 #pragma once
DavidEGrayson 10:e4dd36148539 2
DavidEGrayson 10:e4dd36148539 3 #include <mbed.h>
DavidEGrayson 10:e4dd36148539 4
DavidEGrayson 10:e4dd36148539 5 #define LINE_SENSOR_COUNT 3
DavidEGrayson 10:e4dd36148539 6
DavidEGrayson 29:cfcf08d8ac79 7 extern AnalogIn lineSensorsAnalog[LINE_SENSOR_COUNT];
DavidEGrayson 29:cfcf08d8ac79 8
DavidEGrayson 29:cfcf08d8ac79 9 uint16_t analogReadWithFilter(AnalogIn * input);