Robot code for searching an object and charging at it.
Dependencies: HCSR04 Motor mbed
Diff: functions.h
- Revision:
- 11:b45798cc3c10
- Parent:
- 10:cec68ef272cd
- Child:
- 19:67ea4e8be9e1
--- a/functions.h Sat May 23 17:48:01 2015 +0000 +++ b/functions.h Sat May 23 19:31:37 2015 +0000 @@ -9,4 +9,5 @@ void reverseandturn(float speed); void charge(float speed); void stop(); -int detect_object(int range, float speed); \ No newline at end of file +int detect_object(int range, float speed); +void move_detect(float speed, int fwd_bck, int time); \ No newline at end of file