36 #include <mraa/common.hpp>
37 #include <mraa/uart.hpp>
38 #include <mraa/aio.hpp>
39 #include <mraa/gpio.hpp>
41 #define URM37_DEFAULT_UART 0
95 URM37(
int aPin,
int resetPin,
int triggerPin,
float aref=5.0);
103 URM37(
int uart,
int resetPin);
158 mraa::Gpio *m_gpioTrigger;
159 mraa::Gpio m_gpioReset;
165 std::string sendCommand(std::string cmd);
174 bool dataAvailable(
unsigned int millis);
185 std::string readDataStr(
int len);
194 int writeDataStr(std::string data);
uint8_t readEEPROM(uint8_t addr)
Definition: urm37.cxx:202
void writeEEPROM(uint8_t addr, uint8_t value)
Definition: urm37.cxx:235
~URM37()
Definition: urm37.cxx:75
float getTemperature()
Definition: urm37.cxx:165
API for the DFRobot URM37 Ultrasonic Ranger.
Definition: urm37.h:84
void reset()
Definition: urm37.cxx:93
float getDistance(int degrees=0)
Definition: urm37.cxx:119
URM37(int aPin, int resetPin, int triggerPin, float aref=5.0)
Definition: urm37.cxx:35