3#include "Things/TouchSensor.h"
5namespace RoboidControl {
40 virtual void Update(
unsigned long currentTimeMs,
41 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:62
unsigned char pinEcho
The pin number of the echo signal.
Definition UltrasonicSensor.h:47
float distance
The last read distance.
Definition UltrasonicSensor.h:33
unsigned char pinTrigger
The pin number of the trigger signal.
Definition UltrasonicSensor.h:45
float GetDistance()
erform an ultrasonic 'ping' to determine the distance to the nearest object
Definition UltrasonicSensor.cpp:26
float touchDistance
The distance at which the object is considered to be touched.
Definition UltrasonicSensor.h:28
A participant is a device which manages things. It can communicate with other participant to synchron...
Definition Participant.h:52
A thing is the primitive building block.
Definition Thing.h:20
A sensor which can detect touches.
Definition TouchSensor.h:8