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:
25:6f63053cee81
Parent:
13:7dcb1642ef99
Child:
26:5814404856e2
--- a/Hardwares/Camera.h	Tue Feb 21 19:29:02 2017 +0000
+++ b/Hardwares/Camera.h	Tue Feb 21 20:00:41 2017 +0000
@@ -24,25 +24,10 @@
     
     const unsigned char * GetPicture() const;
     
-    //Blocking method. Do not use during the running state!!
-    void ReadRegisters();
-    
 private:
     
     Camera();
     
-    void OnPixelClock();
-    
-    void OnFrameClock();
-    
-    void OnHorizontalClock();
-    
-    //Blocking method. Do not use during the running state!!
-    void SCCBWrite(const uint8_t RegAddr, uint8_t Data);
-    
-    //Blocking method. Do not use during the running state!!
-    uint8_t SCCBRead(const uint8_t RegAddr);
-    
     SW::Core & m_core;
     
     InterruptIn m_pClock;
@@ -51,8 +36,6 @@
     
     InterruptIn m_vsnyc;
     
-    I2C m_sccbCtrl;
-    
     //unsigned char  m_pics[2][(CAM_MAX_ROW + 1) * (CAM_MAX_COL + 1)];
     
     unsigned char m_currentIndex;
@@ -63,5 +46,5 @@
     
     bool m_hasPic;
     
-    OV7725RegBuf m_regBuf;
+    OV7725RegBuf * m_regBuf;
 };