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:
65:295c222fdf88
Parent:
64:43ab429a37e0
Child:
67:1b5c8add3d01
--- a/Hardwares/ArduCAM.h	Mon Apr 10 16:44:31 2017 +0000
+++ b/Hardwares/ArduCAM.h	Wed Apr 12 22:16:40 2017 +0000
@@ -6,10 +6,16 @@
 #include <rtos.h>
 #include "PinAssignment.h"
 
-#define RESOLUTION_WIDTH 160
-#define RESOLUTION_HEIGHT 120
+#define RESOLUTION_WIDTH 80
+#define RESOLUTION_HEIGHT 60
 //#define MANUAL_REDUCE_RESULOTION_BY2
-#define CAM_ROI_UPPER_LIMIT 8
+#define CAM_ROI_UPPER_LIMIT 10
+
+
+#define BOTH_NOT_FOUND   0
+#define LEFT_FOUND       1
+#define RIGHT_FOUND      2
+#define BOTH_FOUND        3
 
 
 //=====Must pick one and only one here!=====