Robot code for searching an object and charging at it.
Dependencies: HCSR04 Motor mbed
functions.h@4:0507835a3dce, 2015-05-23 (annotated)
- Committer:
- abdsha01
- Date:
- Sat May 23 15:05:18 2015 +0000
- Revision:
- 4:0507835a3dce
- Child:
- 7:d94d23c55015
- Child:
- 9:7770a84228c0
Improved code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
abdsha01 | 4:0507835a3dce | 1 | // Header file for functions.cpp |
abdsha01 | 4:0507835a3dce | 2 | |
abdsha01 | 4:0507835a3dce | 3 | int read_line1(); |
abdsha01 | 4:0507835a3dce | 4 | int read_line2(); |
abdsha01 | 4:0507835a3dce | 5 | int detect_line(); |
abdsha01 | 4:0507835a3dce | 6 | void reverse(float speed); |
abdsha01 | 4:0507835a3dce | 7 | void reverseandturn(float speed); |
abdsha01 | 4:0507835a3dce | 8 | void charge(float speed); |
abdsha01 | 4:0507835a3dce | 9 | void stop(); |
abdsha01 | 4:0507835a3dce | 10 | int detect_object(int range, float speed); |