Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
line_tracker.h
- Committer:
- DavidEGrayson
- Date:
- 2014-02-27
- Revision:
- 21:c279c6a83671
- Child:
- 22:44c032e59ff5
File content as of revision 21:c279c6a83671:
#pragma once #include "line_sensors.h" class LineTracker { public: LineTracker(); void updateCalibration(); void read(); bool getLineVisible(); uint16_t getLinePosition(); uint16_t rawValues[LINE_SENSOR_COUNT]; uint16_t calibratedValues[LINE_SENSOR_COUNT]; uint16_t calibratedMaximum[LINE_SENSOR_COUNT]; uint16_t calibratedMinimum[LINE_SENSOR_COUNT]; private: void readRawValues(); void updateCalibratedValues(); void updateLineStatus(); bool lineVisible; uint16_t linePosition; };