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:
54:f1f5648dfacf
Parent:
21:60377d6f1cc2
Child:
65:295c222fdf88
--- a/Hardwares/WheelEncoder.cpp	Thu Apr 06 19:42:40 2017 +0000
+++ b/Hardwares/WheelEncoder.cpp	Thu Apr 06 20:36:51 2017 +0000
@@ -25,14 +25,14 @@
 
 void WheelEncoder::Update(float deltaTime)
 {
-    int rrHz = 1 / m_rrDuration;
-    int rlHz = 1 / m_rlDuration;
+    //int rrHz = 1 / m_rrDuration;
+    //int rlHz = 1 / m_rlDuration;
     
-    char buf[5];
-    sprintf(buf, "RR: %d", rrHz);
-    m_core.GetUSBServer().PushUnreliableMsg('D', buf);
-    sprintf(buf, "RL: %d", rlHz);
-    m_core.GetUSBServer().PushUnreliableMsg('D', buf);
+    ///char buf[5];
+    //sprintf(buf, "RR: %d", rrHz);
+    ///m_core.GetUSBServer().PushUnreliableMsg('D', buf);
+    //sprintf(buf, "RL: %d", rlHz);
+    //m_core.GetUSBServer().PushUnreliableMsg('D', buf);
 }
 
 void WheelEncoder::pulseInRRight()