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:
42:c4e1606087ff
Parent:
41:7b21c5e3599e
Child:
43:0d1886f4848a
--- a/Hardwares/ArduCAM.cpp	Thu Mar 23 23:17:51 2017 +0000
+++ b/Hardwares/ArduCAM.cpp	Fri Mar 24 15:44:08 2017 +0000
@@ -179,11 +179,11 @@
     
     //ardu_cam_spi_set_burst();
 
-    ardu_cam_get_pixel(); //Get the first dummy pixel
+    //ardu_cam_get_pixel(); //Get the first dummy pixel
     //ardu_utft_set_xy(0, 0, 319, 239);
     for (uint8_t i = 0; i < RESOLUTION_HEIGHT; ++i)
     {
-        ardu_utft_set_xy(0, i + 20, 319 - 80, 239);
+        ardu_utft_set_xy(0, i + 20, 300, i + 20);
         for (int j = 0; j < RESOLUTION_WIDTH; ++j)
         {
             uint8_t VH = ardu_cam_spi_read_8(SINGLE_FIFO_READ);