IT GOES NORTH MOST OF THE TIME

Dependencies:   HMC6352 Motor mbed

Files at this revision

API Documentation at this revision

Comitter:
vsavkin3
Date:
Wed Oct 10 20:17:04 2012 +0000
Parent:
14:9f5ce2fd2cfc
Commit message:
Final Santa Seeker

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 9f5ce2fd2cfc -r ff95ff245fc0 main.cpp
--- a/main.cpp	Wed Oct 10 20:14:15 2012 +0000
+++ b/main.cpp	Wed Oct 10 20:17:04 2012 +0000
@@ -103,6 +103,7 @@
                 else {right.speed(1); left.speed(1);
                 //printf("CHARGE!\n\r");
                 if((avgLeft>35&&stable[0][0]>35&&stable[0][1]>35)
+                
                    &&(avgRight>35&&stable[1][0]>35&&stable[1][1]>35)
                    &&NorthCount>=350){ NorthOn=1; NorthCount=0;}