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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers line_sensors.h Source File

line_sensors.h

00001 #pragma once
00002 
00003 #include <mbed.h>
00004 
00005 #define LINE_SENSOR_COUNT 3
00006 
00007 //extern AnalogIn lineSensorsAnalog[LINE_SENSOR_COUNT];
00008 
00009 uint16_t analogReadWithFilter(AnalogIn * input);
00010 
00011 void readSensors(uint16_t * values);