17 #ifndef ROVERAPI_ROVER_GROOVEULTRASONIC_HPP_ 18 #define ROVERAPI_ROVER_GROOVEULTRASONIC_HPP_ ~RoverGrooveUltrasonic()
Destructor for the RoverGrooveUltrasonic class.
Definition: rover_grooveultrasonic.cpp:41
RoverSensor class is an abstract class to define interface between common sensors used in the rover...
Definition: rover_sensor.hpp:48
void setSigPin(const int sig_pin)
Sets the private attribute sigPin for Groove Ultrasonic Sensor.
Definition: rover_grooveultrasonic.cpp:82
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.
Definition: rover_grooveultrasonic.hpp:37
RoverSensorID_t sensorID
Sensor Identification.
Definition: rover_grooveultrasonic.hpp:43
RoverSensorID_t
RoverSensorID_t defines the sensor location ID of the proximity sensors on the rover.
Definition: rover_sensor.hpp:38
void initialize(void)
Function to setup Groove Ultrasonic sensor.
Definition: rover_grooveultrasonic.cpp:43
static const int SIG1
Groove Sensor Pin for Rear Sensor Socket (in wiringPi format)
Definition: rover_grooveultrasonic.hpp:30
int sigPin
Signal pin.
Definition: rover_grooveultrasonic.hpp:48
static const int SIG0
Groove Sensor Pin for Front Sensor Socket (in wiringPi format)
Definition: rover_grooveultrasonic.hpp:25
float read(void)
Member function to read from Groove ultrasonic sensor given its sensor id.
Definition: rover_grooveultrasonic.cpp:48
rover Namespace contains classes to manage Rover sensors, gpio, buzzer, buttons, driving, utilities, and cloud.
Definition: rover_api.hpp:293
RoverGrooveUltrasonic(const RoverSensorID_t sensor_id)
Constructor for the RoverGrooveUltrasonic class.
Definition: rover_grooveultrasonic.cpp:22
int getSigPin(void)
Returns the private attribute sigPin for Groove Ultrasonic Sensor.
Definition: rover_grooveultrasonic.cpp:87