Go to the documentation of this file.
11 #include "../../../../runtime/Runtime.hpp"
12 #include "../../DistanceSensor.hpp"
158 unsigned long mPingDelay;
162 void measureDistance();
uint8_t changeAddress(uint8_t newAddress)
Changes the address of the specific SRF08 sensor.
void setGain(uint8_t gain)
Combined with the range setting affects how much time each measurement will last as well as the maxim...
unsigned int getMedianDistance(uint8_t iterations=smartcarlib::constants::srf08::kDefaultIterations) override
Gets the median distance from the specified number of measurements.
uint8_t getLightReading()
Conducts a measurement from the on-board light sensor.
unsigned int getDistance() override
Gets the distance measured by the sensor in centimeters.
const uint8_t kDefaultPingDelay
const uint8_t kDefaultIterations
unsigned long setPingDelay(unsigned long milliseconds=smartcarlib::constants::srf08::kDefaultPingDelay)
Delay between ranging measurements.
SRF08(Runtime &runtime, uint8_t address)
Constructs an SRF08 sensor that communicates over I2C.
void setRange(uint8_t range)
Combined with the gain setting affects how much time each measurement will last as well as the maximu...