sweeps for objects using servo motor, sonar and IR sensors
More...
Go to the source code of this file.
|
|
volatile int | overflow |
| |
|
volatile int | rise_time |
| |
|
volatile int | fall_time |
| |
|
volatile int | j |
| |
|
volatile float | servo_angle |
| |
|
int | delta = 0 |
| |
|
float | distancePing = 0 |
| |
|
unsigned char | angle = 0 |
| |
|
unsigned char | tempAngle1 = 0 |
| |
|
unsigned char | tempAngle2 = 0 |
| |
|
float | tempDistance = 0 |
| |
|
int | Qval = 0 |
| |
|
int | Distance = 0 |
| |
|
int | prevDist = 80 |
| |
|
int | i |
| |
|
int | count = 0 |
| |
|
unsigned char | theta = 0 |
| |
|
float | width = 0 |
| |
|
float | distances [10] |
| |
|
float | angles [10] |
| |
|
float | widths [10] |
| |
|
oi_t * | sensor_data |
| |
sweeps for objects using servo motor, sonar and IR sensors
- Author
- Steven, Kynara, Saba, Bailey, Brett, Austin
- Date
- 4/24/18
Definition in file sweep.c.
◆ sweep()
sweeps from 0 to 180 degrees, reads and sends data
sends the angle, width and distance of each tall object detected within 100cm to uart
Definition at line 60 of file sweep.c.
◆ sweep_init()
initializes the sweep modules
calls all of the other inits
Definition at line 44 of file sweep.c.