
Robot code for searching an object and charging at it.
Dependencies: HCSR04 Motor mbed
Diff: functions.h
- Revision:
- 20:37a89edd1cde
- Parent:
- 19:67ea4e8be9e1
- Child:
- 22:e808fb71847d
--- a/functions.h Sat May 30 19:08:26 2015 +0000 +++ b/functions.h Sun Jun 07 14:18:00 2015 +0000 @@ -1,5 +1,16 @@ // Header file for functions.cpp +// Global parameters +// Speed at which it move_forwards an object +// optimum value: 0.4 to 0.8 +extern float move_forwardspeed; +// Speed at which it rotates to find an object +// optimum value: 0.3 to 0.5 +extern float searchspeed; +// Range of detection +// optimum value: 30 to 50 +extern unsigned int range; + void flash_leds(); void turn_leds_on(); int read_line1();