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:
29:f87d8790f57d
Parent:
27:c68f711e5b67
--- a/Hardwares/Camera.cpp	Mon Feb 27 21:43:59 2017 +0000
+++ b/Hardwares/Camera.cpp	Wed Mar 01 16:31:36 2017 +0000
@@ -98,6 +98,7 @@
 {
     m_regBuf = new OV7725RegBuf(m_core);
 
+/*
     m_regBuf->WriteDefaultRegisters();
     
 #if (CAMERA_PIXEL_WIDTH == 80)
@@ -122,7 +123,7 @@
     
     m_regBuf->SCCBWrite(OV7725_COM4,  0x01);
     m_regBuf->SCCBWrite(OV7725_CLKRC, 0x89);
-    
+*/    
     char buf[20];
     unsigned char tempV = m_regBuf->SCCBRead(OV7725_HOutSize);
     sprintf(buf, "CamReg %#x=%#x", OV7725_HOutSize, tempV);