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
Diff: Hardwares/ArduCAM.cpp
- Revision:
- 48:f76b5e252444
- Parent:
- 46:a5eb9bd3bb55
- Child:
- 50:c387c88141fb
diff -r a5eb9bd3bb55 -r f76b5e252444 Hardwares/ArduCAM.cpp --- a/Hardwares/ArduCAM.cpp Thu Mar 30 22:34:20 2017 +0000 +++ b/Hardwares/ArduCAM.cpp Wed Apr 05 21:35:47 2017 +0000 @@ -14,8 +14,8 @@ #define CAM_BLK_CAL_RIGHT 85 //#define CAM_DISP_DEBUG -#define CAM_DISP_DEBUG_CENTER -//#define CAM_DISP_IMG +//#define CAM_DISP_DEBUG_CENTER +#define CAM_DISP_IMG #ifdef __cplusplus extern "C" { @@ -129,8 +129,6 @@ ardu_cam_spi_write_8(ARDUCHIP_CAP_CTRL, 0x00); //ardu_cam_start_capture(); - //wait(0.1); - //unsigned char tempV = ardu_cam_read_reg(ARDUCHIP_MODE); //sprintf(buf, "Ardu Stat %#x", tempV); @@ -149,7 +147,7 @@ void ardu_cam_start_capture() { ardu_cam_spi_write_8(ARDUCHIP_FIFO, FIFO_CLEAR_MASK); - //wait(0.1); + ardu_cam_spi_write_8(ARDUCHIP_FIFO, FIFO_START_MASK); }