Robot code for searching an object and charging at it.
Dependencies: HCSR04 Motor mbed
Diff: main.cpp
- Revision:
- 24:513c88816ed8
- Parent:
- 23:07b3c12800a6
- Child:
- 25:7662e93a77eb
--- a/main.cpp Sun Jun 07 15:05:00 2015 +0000 +++ b/main.cpp Sun Jun 07 15:10:43 2015 +0000 @@ -35,13 +35,13 @@ // reverse(speed) // - reverses the robot with move_forwardspeed in same position // -// reverseandturn(speed) -// - reverses whie moving in a circular direction +// reverse_and_turn(speed) +// - reverses while moving in a circular direction // // stop() // - stops the robot // -// moverandom(speed) +// move_random(speed) // - used to move the robot randomly, the robot will either // move forward, move backward, or turn around. The movement // will be carried out for a random time