ft. button press reset

Dependencies:   mbed

Fork of BeaconDemo_RobotCode by Science Memeseum

Files at this revision

API Documentation at this revision

Comitter:
jhok500
Date:
Mon Mar 13 10:07:07 2017 +0000
Parent:
22:3643fc1c82b6
Commit message:
ft. reset button press

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Mar 08 11:49:39 2017 +0000
+++ b/main.cpp	Mon Mar 13 10:07:07 2017 +0000
@@ -279,6 +279,11 @@
         main_program_state = 7;
         display.write_string("TAG");
         }
+    else if(buffer[0] == 'R'){
+        set_left_motor_speed(0);
+        set_right_motor_speed(0);
+        init();
+        }
     else
     {