3#include "Things/TouchSensor.h"
5namespace RoboidControl {
11 struct Configuration {
33 virtual void Update(
bool recursive =
false)
override;
45#pragma region Touch sensor
52 float touchDistance = 0.2f;
55 virtual void Update(
bool recursive =
false)
override;
61#pragma region Touch sensor
An HC-SR04 ultrasonic distance sensor.
Definition UltrasonicSensor.h:9
unsigned char pinEcho
The pin number of the echo signal.
Definition UltrasonicSensor.h:39
float distance
The distance at which the object is considered to be touched.
Definition UltrasonicSensor.h:26
unsigned char pinTrigger
The pin number of the trigger signal.
Definition UltrasonicSensor.h:37
float GetDistance()
erform an ultrasonic 'ping' to determine the distance to the nearest object
Definition UltrasonicSensor.cpp:20
virtual void Update(bool recursive=false) override
Definition UltrasonicSensor.cpp:55
A thing is the primitive building block.
Definition Thing.h:20
static Thing * LocalRoot()
The root thing for the local participant.
Definition Thing.cpp:23
A sensor which can detect touches.
Definition TouchSensor.h:8