#include "t89c51cc02.h"
#include "datatypes.h"
#include "bumper.h"
#include "adc.h"
Go to the source code of this file.
Functions | |
void | Bumper_init () |
initialize bumper control subsystem | |
void | Bumper_select (BYTE sensorid) |
select one of the outer bumper sensors for measurement | |
WORD | Bumper_read (BYTE bumpernr) |
reads one of the perimeter bumper sensors |
Definition in file bumper.c.
|
reads one of the perimeter bumper sensors A given bumper sensor is selected and then being read with the A/D converter.
Definition at line 57 of file bumper.c. References ADC(), Bumper_activate, Bumper_deactivate, and Bumper_select(). Referenced by main(). |
|
select one of the outer bumper sensors for measurement
A 74HCT237 decoder IC is used to select one of the bumpers. This function applies the sensor address to its A bus.
Definition at line 33 of file bumper.c. Referenced by Bumper_read(). |