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
Hardwares/ArduTouch.h@80:c85cb93713b3, 2017-04-18 (annotated)
- Committer:
- hazheng
- Date:
- Tue Apr 18 19:26:33 2017 +0000
- Branch:
- Drift
- Revision:
- 80:c85cb93713b3
- Parent:
- 79:bdbac82c979b
- Child:
- 93:8e1bd3602d53
Transfer to State Machine.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hazheng | 78:9f20bf037db6 | 1 | #pragma once |
hazheng | 78:9f20bf037db6 | 2 | #ifndef ARDU_TOUCH_H |
hazheng | 78:9f20bf037db6 | 3 | #define ARDU_TOUCH_H |
hazheng | 78:9f20bf037db6 | 4 | |
hazheng | 79:bdbac82c979b | 5 | #include <mbed.h> |
hazheng | 79:bdbac82c979b | 6 | |
hazheng | 78:9f20bf037db6 | 7 | #ifdef __cplusplus |
hazheng | 78:9f20bf037db6 | 8 | extern "C" { |
hazheng | 78:9f20bf037db6 | 9 | #endif |
hazheng | 78:9f20bf037db6 | 10 | |
hazheng | 79:bdbac82c979b | 11 | void ardu_touch_init(); |
hazheng | 78:9f20bf037db6 | 12 | |
hazheng | 79:bdbac82c979b | 13 | void ardu_touch_get_pos(int16_t* x, int16_t* y); |
hazheng | 78:9f20bf037db6 | 14 | |
hazheng | 80:c85cb93713b3 | 15 | void ardu_touch_set_irq_function(void(*irq_func)(void)); |
hazheng | 80:c85cb93713b3 | 16 | |
hazheng | 80:c85cb93713b3 | 17 | void ardu_touch_set_pos_function(void(*pos_func)(int16_t, int16_t)); |
hazheng | 80:c85cb93713b3 | 18 | |
hazheng | 78:9f20bf037db6 | 19 | #ifdef __cplusplus |
hazheng | 78:9f20bf037db6 | 20 | } |
hazheng | 78:9f20bf037db6 | 21 | #endif |
hazheng | 78:9f20bf037db6 | 22 | |
hazheng | 78:9f20bf037db6 | 23 | #endif //ARDU_TOUCH_H |