RoverGrooveUltrasonic is a class that is inherited from RoverSensor abstract class. RoverGrooveUltrasonic class contains member functions and variables to set up and read from Groove ultrasonic sensors that are embedded on the rover.
More...
#include <rover_grooveultrasonic.hpp>
RoverGrooveUltrasonic is a class that is inherited from RoverSensor abstract class. RoverGrooveUltrasonic class contains member functions and variables to set up and read from Groove ultrasonic sensors that are embedded on the rover.
rover::RoverGrooveUltrasonic::RoverGrooveUltrasonic |
( |
const RoverSensorID_t |
sensor_id | ) |
|
|
explicit |
rover::RoverGrooveUltrasonic::~RoverGrooveUltrasonic |
( |
| ) |
|
int rover::RoverGrooveUltrasonic::getSigPin |
( |
void |
| ) |
|
Returns the private attribute sigPin for Groove Ultrasonic Sensor.
- Returns
- sig_pin Pin in wiringPi format for Groove Ultrasonic Sensor
void rover::RoverGrooveUltrasonic::initialize |
( |
void |
| ) |
|
|
virtual |
float rover::RoverGrooveUltrasonic::read |
( |
void |
| ) |
|
|
virtual |
Member function to read from Groove ultrasonic sensor given its sensor id.
- Returns
- sensor_val Sensor value read in centimeters from sensor
Implements rover::RoverSensor.
void rover::RoverGrooveUltrasonic::setSigPin |
( |
const int |
sig_pin | ) |
|
Sets the private attribute sigPin for Groove Ultrasonic Sensor.
- Parameters
-
sig_pin | Pin in wiringPi format for Groove Ultrasonic Sensor |
- Returns
- void
int rover::RoverGrooveUltrasonic::sigPin |
|
private |
The documentation for this class was generated from the following files: