SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.
Dependencies: TSI USBDevice mbed-dev
Fork of SmartWheels by
SWCommon.h@56:7d3395ae022d, 2017-04-06 (annotated)
- Committer:
- hazheng
- Date:
- Thu Apr 06 22:19:59 2017 +0000
- Revision:
- 56:7d3395ae022d
- Child:
- 57:0d8a155d511d
Added debug log function.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hazheng | 56:7d3395ae022d | 1 | #pragma once |
hazheng | 56:7d3395ae022d | 2 | #ifndef SW_COMMON_H |
hazheng | 56:7d3395ae022d | 3 | #define SW_COMMON_H |
hazheng | 56:7d3395ae022d | 4 | |
hazheng | 56:7d3395ae022d | 5 | #include "ArduUTFT.h" |
hazheng | 56:7d3395ae022d | 6 | |
hazheng | 56:7d3395ae022d | 7 | #ifdef SW_DEBUG |
hazheng | 56:7d3395ae022d | 8 | #define LOGI(...) char buf[100];\ |
hazheng | 56:7d3395ae022d | 9 | sprintf(buf, __VA_ARGS__);\ |
hazheng | 56:7d3395ae022d | 10 | ardu_utft_print(buf, 230, 100); |
hazheng | 56:7d3395ae022d | 11 | |
hazheng | 56:7d3395ae022d | 12 | #else |
hazheng | 56:7d3395ae022d | 13 | #define LOGI(...) |
hazheng | 56:7d3395ae022d | 14 | |
hazheng | 56:7d3395ae022d | 15 | #endif |
hazheng | 56:7d3395ae022d | 16 | |
hazheng | 56:7d3395ae022d | 17 | #endif //SW_COMMON_H |