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:
27:c68f711e5b67
Parent:
26:5814404856e2
--- a/Hardwares/Camera.h	Tue Feb 21 20:36:38 2017 +0000
+++ b/Hardwares/Camera.h	Tue Feb 21 22:27:10 2017 +0000
@@ -6,6 +6,7 @@
 
 #define CAMERA_PIXEL_WIDTH  160
 #define CAMERA_PIXEL_HEIGHT 120
+#define PICTURE_ARRAY_SIZE ((CAMERA_PIXEL_WIDTH / 8) * CAMERA_PIXEL_HEIGHT)
 
 namespace SW
 {
@@ -42,8 +43,6 @@
     
     InterruptIn m_vsnyc;
     
-    bool m_hasPic;
-    
     OV7725RegBuf * m_regBuf;
     
     float m_debugOutputTimer;