Robot code for searching an object and charging at it.

Dependencies:   HCSR04 Motor mbed

functions.h

Committer:
alex0612
Date:
2015-05-23
Revision:
11:b45798cc3c10
Parent:
10:cec68ef272cd
Child:
19:67ea4e8be9e1

File content as of revision 11:b45798cc3c10:

// Header file for functions.cpp

int read_line1();
int read_line2();
int detect_line();
void moverandom();
void reverse(float speed);
void turn(float speed);
void reverseandturn(float speed);
void charge(float speed);
void stop();
int detect_object(int range, float speed);
void move_detect(float speed, int fwd_bck, int time);