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:
46:a5eb9bd3bb55
Parent:
44:15de535c4005
Child:
47:a682be9908b9
Child:
48:f76b5e252444
--- a/Hardwares/ArduCAM.h	Thu Mar 30 03:50:23 2017 +0000
+++ b/Hardwares/ArduCAM.h	Thu Mar 30 22:34:20 2017 +0000
@@ -9,6 +9,7 @@
 #define RESOLUTION_WIDTH 160
 #define RESOLUTION_HEIGHT 120
 //#define MANUAL_REDUCE_RESULOTION_BY2
+#define CAM_ROI_UPPER_LIMIT 15
 
 
 //=====Must pick one and only one here!=====
@@ -39,13 +40,13 @@
 
 #if defined(ARDUCAM_OV2640)
     #include "OV2640RegProg.h"
-    using namespace OV2640Prog;
+    //using namespace OV2640Prog;
 #elif defined(ARDUCAM_OV7725)
     #include "OV7725RegProg.h"
-    using namespace OV7725Prog;
+    //using namespace OV7725Prog;
 #elif defined(ARDUCAM_OV7670)
     #include "OV7670RegProg.h"
-    using namespace OV7670Prog;
+    //using namespace OV7670Prog;
 #endif
 
 #if defined(ARDUCAM_SHIELD)
@@ -86,6 +87,10 @@
 #define BURST_FIFO_READ         0x3C  //Burst FIFO read operation
 #define SINGLE_FIFO_READ        0x3D  //Single FIFO read operation
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 bool ardu_cam_init();
 
 void ardu_cam_start_capture();
@@ -94,12 +99,16 @@
 
 void ardu_cam_print_debug();
 
-//void ardu_cam_display_img_utft();
-
 volatile const uint8_t* ardu_cam_get_center_array();
 
 uint8_t ardu_cam_is_capture_finished();
 
+void ardu_cam_display_img_utft();
+
+#ifdef __cplusplus
+}
+#endif
+
 //uint8_t ardu_cam_read_reg(uint8_t addr);
 
 //void ardu_cam_write_reg(uint8_t addr, uint8_t data);