Custom version for NXP cup car
Vision.h
- Committer:
- Clarkk
- Date:
- 2016-03-25
- Revision:
- 0:ccbc44580fab
- Child:
- 1:68bb92736e14
File content as of revision 0:ccbc44580fab:
#include "mbed.h" #ifndef _VISION_H #define _VISION_H struct lineScanData { uint8_t mostWhiteIndex; uint16_t maxLightValue; uint8_t rightEdgeIndex; uint8_t leftEdgeIndex; }; class Vision { public: Vision(); void processTasks(); void saveData(uint16_t* line); struct lineScanData processLine(); bool lightCompensation; struct lineScanData getRoadData(); private: uint16_t lineData[128]; bool newDataToProcess; struct lineScanData currentRoadData; void lineScanLightAdjust(); }; #endif