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:
14:88302da8bff0
Parent:
13:7dcb1642ef99
Child:
20:4cdbd1ae4ead
diff -r 7dcb1642ef99 -r 88302da8bff0 Hardwares/Servo.cpp
--- a/Hardwares/Servo.cpp	Wed Feb 08 23:47:02 2017 +0000
+++ b/Hardwares/Servo.cpp	Thu Feb 09 20:01:43 2017 +0000
@@ -36,23 +36,3 @@
     m_core.GetUSBServer().PushUnreliableMsg('D', buf);
     m_pwm.pulsewidth(m_pulseWidth); 
 }
-
-/*
-void Servo::turnRight(float angle)
-{
-    if(angle > 21)
-        angle = 21;
-    
-    m_pulseWidth = (0.0015 + (0.000017 * angle));
-    m_pwm.pulsewidth(m_pulseWidth); 
-}
-
-void Servo::turnLeft(float angle)
-{
-    if(angle > 21)
-        angle = 21;
-        
-    m_pulseWidth = (0.0015 - (0.00017 * angle));
-    m_pwm.pulsewidth(m_pulseWidth); 
-}
-*/
\ No newline at end of file