
ft. button press reset
Dependencies: mbed
Fork of BeaconDemo_RobotCodeNew by
Diff: main.cpp
- Revision:
- 22:3643fc1c82b6
- Parent:
- 21:efe191c96cbb
- Child:
- 23:fd0f0931768a
--- a/main.cpp Mon Mar 06 13:52:55 2017 +0000 +++ b/main.cpp Wed Mar 08 11:49:39 2017 +0000 @@ -98,7 +98,7 @@ if(target_reached == 1) set_program(1); break; case 3: - curved_random_walk_with_interaction_program(); + obs_avoid(); break; case 4: straight_random_walk_with_interaction_program(); @@ -260,7 +260,7 @@ display.write_string("FLOCKING"); } else if(buffer[0] == 'E'){ - main_program_state = 4; + main_program_state = 3; display.write_string("RANDOM WALK"); } else if(buffer[0] == 'F'){