final project  1
groundSensor.c File Reference

detects and returns the sensor data that points to the ground More...

#include "main.h"
#include "lcd.h"

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
 

Detailed Description

detects and returns the sensor data that points to the ground

consisting of cliff and tape sensors

Author
Steven, Kynara, Saba, Bailey, Brett, Austin
Date
4/24/18

Definition in file groundSensor.c.

Function Documentation

◆ getGroundData()

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

Parameters
sensorsis open interface sensors

Definition at line 33 of file groundSensor.c.

◆ groundSensor_init()

void groundSensor_init ( )

initializes the ground sensors

initializes the ground sensors using open interface

Definition at line 21 of file groundSensor.c.