17 #ifndef ROVERAPI_ROVER_DHT22_HPP_ 18 #define ROVERAPI_ROVER_DHT22_HPP_ void initialize(void)
Function to setup DHT22 sensor.
Definition: rover_dht22.cpp:31
static const int MAX_TIMINGS
Definition: rover_dht22.hpp:28
RoverSensor class is an abstract class to define interface between common sensors used in the rover...
Definition: rover_sensor.hpp:48
int DHT22_SETUP_
Flag to hold if DHT22 is set up.
Definition: rover_dht22.hpp:46
RoverDHT22()
Constructor for the RoverDHT22 class.
Definition: rover_dht22.cpp:22
float readHumidity(void)
Reads the humidity value from DHT22 (float).
Definition: rover_dht22.cpp:185
float read(void)
Reads the temperature value from DHT22 (float).
Definition: rover_dht22.cpp:36
RoverDHT22 is a class that is inherited from RoverSensor abstract class. RoverDHT22 class contains me...
Definition: rover_dht22.hpp:35
rover Namespace contains classes to manage Rover sensors, gpio, buzzer, buttons, driving, utilities, and cloud.
Definition: rover_api.hpp:293
int DHT22Pin
Pin in wiringPi format for DHT22 signal.
Definition: rover_dht22.hpp:41
~RoverDHT22()
Destructor for the RoverDHT22 class.
Definition: rover_dht22.cpp:29
void setDHT22Pin(const int pin)
Sets the DHT22 pin in wiringPi format.
Definition: rover_dht22.cpp:322
float readTemperature(void)
Reads the temperature value from DHT22 (float).
Definition: rover_dht22.cpp:49
static const int DHT22_RPI_PIN
DHT22 sensor pin in wiringPi format.
Definition: rover_dht22.hpp:26
int getDHT22Pin(void)
Returns the DHT22 pin in wiringPi format.
Definition: rover_dht22.cpp:327