The Sensor class is the interface used by sensors. It contains methods to update the sensor, get the value of the sensor and get the PhysicalObject the sensor can detect. More...
#include <sensor.h>
Public Member Functions | |
virtual unsigned | value ()=0 |
Gets the value of the sensor. More... | |
virtual void | update ()=0 |
Updates the value of the sensor. More... | |
virtual PhysicalObject * | objectHit ()=0 |
Gets the PhysicalObject sensed by the sensor. More... | |
The Sensor class is the interface used by sensors. It contains methods to update the sensor, get the value of the sensor and get the PhysicalObject the sensor can detect.
|
pure virtual |
Gets the PhysicalObject sensed by the sensor.
Implemented in ChirpIrSensor.
|
pure virtual |
Updates the value of the sensor.
Implemented in ChirpIrSensor.
Referenced by Chirp::step().
|
pure virtual |