IT GOES NORTH MOST OF THE TIME
Dependencies: HMC6352 Motor mbed
Diff: main.cpp
- Revision:
- 15:ff95ff245fc0
- Parent:
- 14:9f5ce2fd2cfc
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;}