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:
21:60377d6f1cc2
Child:
26:5814404856e2
--- a/main.cpp	Tue Feb 21 19:29:02 2017 +0000
+++ b/main.cpp	Tue Feb 21 20:00:41 2017 +0000
@@ -17,14 +17,14 @@
     
     SW::Core core;
     
-    Motor motor(core);
-    Servo servo(core);
-    WheelEncoder wheelEncoder(core);
+    //Motor motor(core);
+    //Servo servo(core);
+    //WheelEncoder wheelEncoder(core);
     Camera cam(core);
     
     DigitalOut led(LED3, 1);
     
-    bool isRegRead = false;
+    //bool isRegRead = false;
     
     //motor.setLeftSpeed(0.2);
     
@@ -41,9 +41,9 @@
         
         //led = 0;
         core.Update(deltaTime);
-        motor.Update(deltaTime);
-        servo.Update(deltaTime);
-        wheelEncoder.Update(deltaTime);
+        //motor.Update(deltaTime);
+        //servo.Update(deltaTime);
+        //wheelEncoder.Update(deltaTime);
         
         tempCount += deltaTime;
         if(tempCount > 1.0f)