3#include "Things/TouchSensor.h"
5namespace RoboidControl {
34 virtual void Update(
unsigned long currentTimeMs,
35 bool recursive =
false)
override;
An HC-SR04 ultrasonic distance sensor.
Definition UltrasonicSensor.h:9
virtual void Update(unsigned long currentTimeMs, bool recursive=false) override
Definition UltrasonicSensor.cpp:55
unsigned char pinEcho
The pin number of the echo signal.
Definition UltrasonicSensor.h:41
float distance
The last read distance.
Definition UltrasonicSensor.h:27
unsigned char pinTrigger
The pin number of the trigger signal.
Definition UltrasonicSensor.h:39
float GetDistance()
erform an ultrasonic 'ping' to determine the distance to the nearest object
Definition UltrasonicSensor.cpp:19
float touchDistance
The distance at which the object is considered to be touched.
Definition UltrasonicSensor.h:22
A participant is a device which manages things. It can communicate with other participant to synchron...
Definition Participant.h:14
A sensor which can detect touches.
Definition TouchSensor.h:8