Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HCSR04 Motor mbed
functions.h@11:b45798cc3c10, 2015-05-23 (annotated)
- Committer:
- alex0612
- Date:
- Sat May 23 19:31:37 2015 +0000
- Revision:
- 11:b45798cc3c10
- Parent:
- 10:cec68ef272cd
- Child:
- 19:67ea4e8be9e1
random function fixed and added move_detect function
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(); |
| alex0612 | 7:d94d23c55015 | 6 | void moverandom(); |
| abdsha01 | 4:0507835a3dce | 7 | void reverse(float speed); |
| abdsha01 | 9:7770a84228c0 | 8 | void turn(float speed); |
| abdsha01 | 4:0507835a3dce | 9 | void reverseandturn(float speed); |
| abdsha01 | 4:0507835a3dce | 10 | void charge(float speed); |
| abdsha01 | 4:0507835a3dce | 11 | void stop(); |
| alex0612 | 11:b45798cc3c10 | 12 | int detect_object(int range, float speed); |
| alex0612 | 11:b45798cc3c10 | 13 | void move_detect(float speed, int fwd_bck, int time); |