David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
line_sensors.h@55:05c8f439497d, 2015-04-16 (annotated)
- Committer:
- DavidEGrayson
- Date:
- Thu Apr 16 20:59:35 2015 +0000
- Revision:
- 55:05c8f439497d
- Parent:
- 31:739b91331f31
This commit works!! I recorded its logs in reckon_course_12.ods
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); |