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
Diff: line_tracker.h
- Revision:
- 46:df2c2d25c070
- Parent:
- 22:44c032e59ff5
diff -r 81dd782bc0b4 -r df2c2d25c070 line_tracker.h --- a/line_tracker.h Sun Jul 28 01:52:34 2019 +0000 +++ b/line_tracker.h Sun Jul 28 22:20:12 2019 +0000 @@ -14,9 +14,9 @@ uint16_t getLinePosition(); uint16_t rawValues[LINE_SENSOR_COUNT]; - uint16_t calibratedValues[LINE_SENSOR_COUNT]; + uint16_t calibratedMinimum[LINE_SENSOR_COUNT]; uint16_t calibratedMaximum[LINE_SENSOR_COUNT]; - uint16_t calibratedMinimum[LINE_SENSOR_COUNT]; + uint16_t calibratedValues[LINE_SENSOR_COUNT]; private: void readRawValues();