heres the code

Dependencies:   Motor Servo mbed

Files at this revision

API Documentation at this revision

Comitter:
JackTamas
Date:
Mon Oct 22 14:45:39 2018 +0000
Parent:
6:d58256361419
Commit message:
newest;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d58256361419 -r 8881672744fd main.cpp
--- a/main.cpp	Mon Oct 22 14:45:12 2018 +0000
+++ b/main.cpp	Mon Oct 22 14:45:39 2018 +0000
@@ -25,7 +25,7 @@
         start = 0.0; //set initial start gate position  
     
   
-        if (x >= 7) {
+        if (x <= 7) {
             finish = 1.0; //gate has a 70% chance to go one way
             for (i=0; i<5; i++) {
                 led[i] = 1;