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: main.cpp
- Revision:
- 40:be98219930e4
- Parent:
- 37:7074a6118d03
- Child:
- 41:7b21c5e3599e
diff -r 218012c00cb6 -r be98219930e4 main.cpp --- a/main.cpp Wed Mar 22 21:54:31 2017 +0000 +++ b/main.cpp Wed Mar 22 23:43:24 2017 +0000 @@ -7,6 +7,7 @@ #include "SWUSBServer.h" #include "ArduCAM.h" +#include "ArduUTFT.h" #include "PinAssignment.h" #include "GlobalVariable.h" @@ -31,10 +32,9 @@ bool isRegRead = false; - //motor.setLeftSpeed(0.2); - //ardu_cam_print_debug(); - ardu_cam_init(); - //ardu_cam_print_debug(); + //ardu_cam_init(); + + ardu_utft_init(); float tempCount = 0; //timer.reset(); @@ -61,7 +61,7 @@ tempCount = 0.0f; } - + /* if(!isRegRead && g_core.GetUSBServer().GetStatus() == SER_STAT_RUNNING && timer.read() > 2.5f && ardu_cam_get_fifo_length() > 0) { //OV7725RegBuf * regBuf = new OV7725RegBuf(g_core); @@ -70,6 +70,7 @@ ardu_cam_print_debug(); isRegRead = true; } + */ wait(0.01); }