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 haofan Zheng

Revision:
93:8e1bd3602d53
Parent:
80:c85cb93713b3
diff -r e9bd429f16b5 -r 8e1bd3602d53 Hardwares/ArduTouch.h
--- a/Hardwares/ArduTouch.h	Wed Apr 19 17:15:46 2017 +0000
+++ b/Hardwares/ArduTouch.h	Wed Apr 19 18:34:12 2017 +0000
@@ -1,3 +1,9 @@
+/**
+ * @file ArduTouch.h
+ * @brief The header file for all functions that controls the ArduCam touch screen.
+ * @author Jordan Brack <jabrack@mix.wvu.edu>, Haofan Zheng <hazheng@mix.wvu.edu>
+ * 
+ */
 #pragma once
 #ifndef ARDU_TOUCH_H
 #define ARDU_TOUCH_H
@@ -8,12 +14,28 @@
 extern "C" {
 #endif
 
+/**
+* @brief Init the touch screen. There is only one touch screen in the system, thus, this function is required to be called only once during the system initialization.
+*/
 void ardu_touch_init();
 
+/**
+* @brief Get the position of the most recent touch.
+* @param x Output. Position in x-axis. A pointer points to the space used to store the value.
+* @param y Output. Position in y-axis. A pointer points to the space used to store the value.
+*/
 void ardu_touch_get_pos(int16_t* x, int16_t* y);
 
+/**
+* @brief Set the touch screen interrupt callback function.
+* @param irq_func The pointer to the interrupt callback function.
+*/
 void ardu_touch_set_irq_function(void(*irq_func)(void));
 
+/**
+* @brief Set the touch screen touch position callback function.
+* @param pos_func The pointer to the touch position callback function.
+*/
 void ardu_touch_set_pos_function(void(*pos_func)(int16_t, int16_t));
 
 #ifdef __cplusplus