Robot code for searching an object and charging at it.

Dependencies:   HCSR04 Motor mbed

Committer:
alex0612
Date:
Sat May 30 19:08:26 2015 +0000
Revision:
19:67ea4e8be9e1
Parent:
11:b45798cc3c10
Child:
20:37a89edd1cde
Added led blinking

Who changed what in which revision?

UserRevisionLine numberNew contents of line
abdsha01 4:0507835a3dce 1 // Header file for functions.cpp
abdsha01 4:0507835a3dce 2
alex0612 19:67ea4e8be9e1 3 void flash_leds();
alex0612 19:67ea4e8be9e1 4 void turn_leds_on();
abdsha01 4:0507835a3dce 5 int read_line1();
abdsha01 4:0507835a3dce 6 int read_line2();
abdsha01 4:0507835a3dce 7 int detect_line();
alex0612 7:d94d23c55015 8 void moverandom();
abdsha01 4:0507835a3dce 9 void reverse(float speed);
abdsha01 9:7770a84228c0 10 void turn(float speed);
abdsha01 4:0507835a3dce 11 void reverseandturn(float speed);
alex0612 19:67ea4e8be9e1 12 void move_forward(float speed);
abdsha01 4:0507835a3dce 13 void stop();
alex0612 11:b45798cc3c10 14 int detect_object(int range, float speed);
alex0612 11:b45798cc3c10 15 void move_detect(float speed, int fwd_bck, int time);