Curtis Sellier / Mbed 2 deprecated Project_Car_Curtis_Non_Tested

Dependencies:   Servo mbed

Files at this revision

API Documentation at this revision

Comitter:
csellier
Date:
Tue Oct 11 14:22:18 2016 +0000
Parent:
3:581d391d248c
Child:
5:40033f403d50
Commit message:
Updated program

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Oct 11 14:19:12 2016 +0000
+++ b/main.cpp	Tue Oct 11 14:22:18 2016 +0000
@@ -42,7 +42,8 @@
     
     if (front > DISTANCE) {
         if (left > DISTANCE) {
-            // turn right
+            ServoRight.write(0.5);
+            ServoLeft.write(0.4);
         } else {
             // turn left    
         }