Robot code for searching an object and charging at it.
Dependencies: HCSR04 Motor mbed
Diff: main.cpp
- Revision:
- 20:37a89edd1cde
- Parent:
- 19:67ea4e8be9e1
- Child:
- 21:42c0db071a7f
- Child:
- 22:e808fb71847d
--- a/main.cpp Sat May 30 19:08:26 2015 +0000 +++ b/main.cpp Sun Jun 07 14:18:00 2015 +0000 @@ -34,10 +34,13 @@ // // reverse(speed) // - reverses the robot with move_forwardspeed in same position - +// // reverseandturn(speed) // - reverses whie moving in a circular direction // +// stop() +// - stops the robot +// // Libraries for using the above functions and more ... #include "mbed.h" @@ -49,7 +52,6 @@ // Example: pc(TX, RX) //Serial pc(USBTX, USBRX); - // Global parameters // Speed at which it move_forwards an object // optimum value: 0.4 to 0.8