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@33:58a0ab6e9ad2, 2014-03-05 (annotated)
- Committer:
- DavidEGrayson
- Date:
- Wed Mar 05 02:50:09 2014 +0000
- Revision:
- 33:58a0ab6e9ad2
- Parent:
- 31:739b91331f31
Bunch of stuff. Then reduced drivingSpeed to 400.
Who changed what in which revision?
User | Revision | Line number | New 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 | 31:739b91331f31 | 7 | //extern AnalogIn lineSensorsAnalog[LINE_SENSOR_COUNT]; |
DavidEGrayson | 29:cfcf08d8ac79 | 8 | |
DavidEGrayson | 31:739b91331f31 | 9 | uint16_t analogReadWithFilter(AnalogIn * input); |
DavidEGrayson | 31:739b91331f31 | 10 | |
DavidEGrayson | 31:739b91331f31 | 11 | void readSensors(uint16_t * values); |