Robot code for searching an object and charging at it.

Dependencies:   HCSR04 Motor mbed

Revision:
21:42c0db071a7f
Parent:
20:37a89edd1cde
Child:
23:07b3c12800a6
--- a/main.cpp	Sun Jun 07 14:18:00 2015 +0000
+++ b/main.cpp	Sun Jun 07 14:59:23 2015 +0000
@@ -23,7 +23,7 @@
 //                          move in a circle to find an object and
 //                          return 1 if it finds something and return
 //                          0 if it does not find anything - the search
-//                          will be carried out for 10 seconds.
+//                          will be carried out for 15 seconds.
 //
 // detect_line ()
 //                      -   used to detect a line, it returns the following
@@ -41,6 +41,11 @@
 // stop()
 //                      -   stops the robot
 //
+// moverandom(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
+//
 
 // Libraries for using the above functions and more ...
 #include "mbed.h"