Revision 15b7e607
ID | 15b7e607c9ec3704c7866011e2536b0f000777c4 |
Chaned libscout sonar code so that it turned sonar on and off when necessary.
scout/libscout/src/SonarControl.h | ||
---|---|---|
52 | 52 |
void set(int position); |
53 | 53 |
|
54 | 54 |
/** Sets sonar to scan a range in 0-180 specified by input */ |
55 |
void set_range(int start_pos, int end_pos); |
|
55 |
void set_range(int start_pos, int end_pos); |
|
56 |
|
|
57 |
/** Stops sonar from panning and taking readings */ |
|
58 |
void set_off(); |
|
56 | 59 |
|
57 | 60 |
/** Returns the distance readings of sonars */ |
58 | 61 |
float query_front(void); |
Also available in: Unified diff