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:
Thu Oct 13 22:02:34 2016 +0000
Parent:
6:550027985c6c
Child:
8:07464acc8a85
Commit message:
update with comas

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Oct 13 22:01:56 2016 +0000
+++ b/main.cpp	Thu Oct 13 22:02:34 2016 +0000
@@ -45,16 +45,16 @@
             ServoRight.write(0.5);   //turn right
             ServoLeft.write(0.4);
         } else {
-            ServoRight.write(0.6)   // turn left
-            ServoLeft.write(0.5)    
+            ServoRight.write(0.6);   // turn left
+            ServoLeft.write(0.5);    
         }
     } else if (left > DISTANCE) {
         if (right < DISTANCE) {
-            ServoRight.write(0.5) // right
-            ServoLeft.write(0.4)
+            ServoRight.write(0.5); // right
+            ServoLeft.write(0.4);
         } else {
-            ServoRight.write(0.6) // forward    
-            ServoLeft.write(0.4)
+            ServoRight.write(0.6); // forward    
+            ServoLeft.write(0.4);
         }
     }