ASEE-2014 / LineFollower

Dependents:   ASEE-2014

Fork of LineFollower by Christopher Bradford

Revision:
7:de9902f316aa
Parent:
6:3482f3f93988
Child:
8:12751953ad8e
--- a/LineFollower.cpp	Thu Mar 06 02:34:37 2014 +0000
+++ b/LineFollower.cpp	Sun Mar 09 23:55:34 2014 +0000
@@ -41,7 +41,7 @@
             
             switch(count){
                 
-                case 1: if(this->read() == 0x7F){
+                case 7: if(this->read() == 0x7F){
                             l.speed(-(0.75 * MAXSPEED));
                             r.speed(MAXSPEED);
                         }
@@ -51,7 +51,7 @@
                         }
                         break;
                         
-                case 2: if(this->read() == 0xE7){
+                case 6: if(this->read() == 0xE7){
                             l.speed(MAXSPEED);
                             r.speed(MAXSPEED);
                         }
@@ -81,7 +81,7 @@
                         }
                         break;
                         
-                case 3: if(this->read() == 0x1F){
+                case 5: if(this->read() == 0x1F){
                             l.speed(-(0.25*MAXSPEED));
                             r.speed(MAXSPEED);
                         }