RoverInfraredSensor is a class that is inherited from RoverSensor abstract class. RoverInfraredSensor class contains member functions and variables to set up and read from SHARP infrared sensors that are embedded on the rover.
More...
#include <rover_infraredsensor.hpp>
RoverInfraredSensor is a class that is inherited from RoverSensor abstract class. RoverInfraredSensor class contains member functions and variables to set up and read from SHARP infrared sensors that are embedded on the rover.
rover::RoverInfraredSensor::RoverInfraredSensor |
( |
const RoverSensorID_t |
sensor_id | ) |
|
|
explicit |
rover::RoverInfraredSensor::~RoverInfraredSensor |
( |
| ) |
|
Destructor for the RoverInfraresSensor class.
void rover::RoverInfraredSensor::initialize |
( |
void |
| ) |
|
|
virtual |
Function to setup Analog to Digital converter used in infrared sensors. Should be called once per program.
- Returns
- void
Implements rover::RoverSensor.
float rover::RoverInfraredSensor::read |
( |
void |
| ) |
|
|
virtual |
Member function to read from infrared proximity sensor given its sensor id.
- Returns
- sensor_val Sensor value read in centimeters from sensor
Implements rover::RoverSensor.
int rover::RoverInfraredSensor::ROVERINFRAREDSENSOR_SETUP_ |
|
private |
The documentation for this class was generated from the following files: