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:
16:66c7a09e71ee
Parent:
13:7dcb1642ef99
Child:
20:4cdbd1ae4ead
--- a/Hardwares/Servo.cpp	Wed Feb 08 23:47:02 2017 +0000
+++ b/Hardwares/Servo.cpp	Fri Feb 10 03:23:20 2017 +0000
@@ -31,9 +31,9 @@
         angle = SERVO_LF * SERVO_MAX_ANGLE;
         
     m_pulseWidth = (0.0015 + (0.00001667 * angle));
-    char buf[10];
-    sprintf(buf, "%f", m_pulseWidth);
-    m_core.GetUSBServer().PushUnreliableMsg('D', buf);
+    //char buf[10];
+    //sprintf(buf, "%f", m_pulseWidth);
+    //m_core.GetUSBServer().PushUnreliableMsg('D', buf);
     m_pwm.pulsewidth(m_pulseWidth); 
 }