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:
35:ac4fcca21560
Parent:
34:f79db3bc2f86
Child:
36:7e747e19f660
--- a/Hardwares/ArduCAM.cpp	Thu Mar 09 19:21:50 2017 +0000
+++ b/Hardwares/ArduCAM.cpp	Mon Mar 13 02:43:53 2017 +0000
@@ -111,14 +111,14 @@
     
     ardu_cam_spi_write_8(ARDUCHIP_TEST1, ARDUCHIP_TEST_MSG);
     uint8_t testV = ardu_cam_spi_read_8(ARDUCHIP_TEST1);
-    if(VerNum != 0x61 || testV != ARDUCHIP_TEST_MSG)
+    if(VerNum != ARDUCHIP_VER_NUM || testV != ARDUCHIP_TEST_MSG)
     {
         g_core.GetUSBServer().PushReliableMsg('D', "CameraInit Fa");
         return false;
     }
     g_core.GetUSBServer().PushReliableMsg('D', "CameraInit Su");
     
-    ardu_cam_set_mode(MCU2LCD_MODE);
+    //ardu_cam_set_mode(MCU2LCD_MODE);
     ardu_cam_start_capture();
     
     wait(0.1);
@@ -220,7 +220,7 @@
         }
         
         g_core.GetUSBServer().PushReliableMsg('P', lineBuf);
-        wait(0.40);
+        wait(0.35);
     }
     
 }
\ No newline at end of file