8namespace RoboidControl {
A Sensor which can measure the distance to the nearest object.
Definition DistanceSensor.h:9
An HC-SR04 ultrasonic distance sensor.
Definition UltrasonicSensor.h:11
uint8_t pinEcho
The pin number of the echo signal.
Definition UltrasonicSensor.h:19
UltrasonicSensor()
Setup an ultrasonic sensor.
uint8_t pinTrigger
The pin number of the trigger signal.
Definition UltrasonicSensor.h:17
float GetDistance()
perform an ultrasonic 'ping' to determine the distance to the nearest object
Definition UltrasonicSensor.cpp:12