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:
37:7074a6118d03
Parent:
36:7e747e19f660
Child:
38:0fb273b28cee
--- a/Hardwares/ArduCAM.h	Tue Mar 14 22:23:15 2017 +0000
+++ b/Hardwares/ArduCAM.h	Tue Mar 14 23:36:13 2017 +0000
@@ -5,16 +5,19 @@
 #include <mbed.h>
 #include "PinAssignment.h"
 
-#define RESOLUTION_WIDTH 160
-#define RESOLUTION_HEIGHT 120
+#define RESOLUTION_WIDTH 320
+#define RESOLUTION_HEIGHT 240
 
 //=====Must pick one and only one here!=====
-#define ARDUCAM_SHIELD_OV2640
+//#define ARDUCAM_SHIELD_OV2640
 //#define ARDUCAM_SHIELD_OV7725
+#define ARDUCAM_SHIELD_OV7670
 //#define ARDUCAM_MINI_OV2640
 //==========================================
 
-#if defined(ARDUCAM_SHIELD_OV2640) || defined(ARDUCAM_SHIELD_OV7725)
+#define MANUAL_REDUCE_RESULOTION_BY2
+
+#if defined(ARDUCAM_SHIELD_OV2640) || defined(ARDUCAM_SHIELD_OV7725) || defined(ARDUCAM_SHIELD_OV7670)
     #define ARDUCAM_SHIELD
 #elif defined(ARDUCAM_MINI_OV2640)
     #define ARDUCAM_MINI
@@ -26,6 +29,8 @@
     #define ARDUCAM_OV2640
 #elif defined(ARDUCAM_SHIELD_OV7725)
     #define ARDUCAM_OV7725
+#elif defined(ARDUCAM_SHIELD_OV7670)
+    #define ARDUCAM_OV7670
 #else
     #error Must pick one and only one ArduCam type!
 #endif
@@ -36,6 +41,9 @@
 #elif defined(ARDUCAM_OV7725)
     #include "OV7725RegProg.h"
     using namespace OV7725Prog;
+#elif defined(ARDUCAM_OV7670)
+    #include "OV7670RegProg.h"
+    using namespace OV7670Prog;
 #endif
 
 #if defined(ARDUCAM_SHIELD)