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.h
- Committer:
- DavidEGrayson
- Date:
- 2014-03-04
- Revision:
- 32:83a13b06093c
- Parent:
- 31:739b91331f31
File content as of revision 32:83a13b06093c:
#pragma once #include <mbed.h> #define LINE_SENSOR_COUNT 3 //extern AnalogIn lineSensorsAnalog[LINE_SENSOR_COUNT]; uint16_t analogReadWithFilter(AnalogIn * input); void readSensors(uint16_t * values);