|
final project
1
|
detects and returns the sensor data that points to the ground More...
Go to the source code of this file.
Functions | |
| void | groundSensor_init () |
| initializes the ground sensors More... | |
| char | getGroundData (oi_t *sensors) |
| checks the ground for tape or a hole More... | |
Variables | |
| short | cutoff |
detects and returns the sensor data that points to the ground
consisting of cliff and tape sensors
Definition in file groundSensor.c.
| char getGroundData | ( | oi_t * | sensors | ) |
checks the ground for tape or a hole
returns an integer depending on what was detected on what sensor 1-4 = cliff left thru right 5-8 = tape left thru right
| sensors | is open interface sensors |
Definition at line 33 of file groundSensor.c.
| void groundSensor_init | ( | ) |
initializes the ground sensors
initializes the ground sensors using open interface
Definition at line 21 of file groundSensor.c.