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:
21:60377d6f1cc2
Parent:
20:4cdbd1ae4ead
Child:
25:6f63053cee81
diff -r 4cdbd1ae4ead -r 60377d6f1cc2 main.cpp
--- a/main.cpp	Tue Feb 14 19:55:04 2017 +0000
+++ b/main.cpp	Tue Feb 14 22:58:07 2017 +0000
@@ -26,6 +26,8 @@
     
     bool isRegRead = false;
     
+    //motor.setLeftSpeed(0.2);
+    
     float tempCount = 0;
     //timer.reset();
     timer.start();
@@ -41,6 +43,7 @@
         core.Update(deltaTime);
         motor.Update(deltaTime);
         servo.Update(deltaTime);
+        wheelEncoder.Update(deltaTime);
         
         tempCount += deltaTime;
         if(tempCount > 1.0f)