Zachary Sunberg / Mbed 2 deprecated SAILORSbot_student

Dependencies:   mbed

Fork of SAILORSbot by Zachary Sunberg

Revision:
14:caef8f217015
Parent:
13:b4bc02a700bb
Parent:
11:f0df5dea322d
Child:
15:0e3360eb84cc
--- a/main.cpp	Tue Jul 21 22:43:14 2015 +0000
+++ b/main.cpp	Tue Jul 21 22:44:01 2015 +0000
@@ -31,6 +31,8 @@
 
     // set mode to MANUAL_MODE when the end is detected
     // mode = MANUAL_MODE
+    
+    wait_ms(10);
 
     led4 = 0;
 }
@@ -118,6 +120,7 @@
     pi.sensor_auto_calibrate();
     r_index = 0;
     received[0] = '\0';
+    mode = MANUAL_MODE;
 
     while(1){