#include <rtt/dev/SensorInterface.hpp>

If the sensor is not calibrated, the minMeasurement() and maxMeasurement() functions should return std::numeric_limits<SensorData>::min() and std::numeric_limits<SensorData>::max() respectively.
Definition at line 65 of file SensorInterface.hpp.
Public Types | |
| typedef SensorData | DataType |
Public Member Functions | |
| virtual | ~SensorInterface () |
| virtual int | readSensor (DataType &p) const =0 |
| Read the Data, the structure that this sensor 'exports'. | |
| virtual DataType | readSensor () const =0 |
| Return the last measurement. | |
| virtual DataType | maxMeasurement () const =0 |
| Returns the maximum value this sensor can read. | |
| virtual DataType | minMeasurement () const =0 |
| Returns the minimum value this sensor can read. | |
| virtual DataType | zeroMeasurement () const =0 |
| Returns the value which would be given with the sensor in ideal rest. | |
| virtual void | calibrate () |
| virtual bool | isCalibrated () const |
| virtual void | unCalibrate () |
Protected Attributes | |
| bool | calibrated |
| virtual int readSensor | ( | DataType & | p | ) | const [pure virtual] |
Read the Data, the structure that this sensor 'exports'.
-1 on failure
| virtual void calibrate | ( | ) | [inline, virtual, inherited] |
Start or perform calibration.
Definition at line 59 of file CalibrationInterface.hpp.
References CalibrationInterface::calibrated.
| virtual bool isCalibrated | ( | ) | const [inline, virtual, inherited] |
Inspect if a calibration has been done.
Definition at line 67 of file CalibrationInterface.hpp.
References CalibrationInterface::calibrated.
| virtual void unCalibrate | ( | ) | [inline, virtual, inherited] |
Undo any previous calibration ( this function may have no effect ).
Definition at line 73 of file CalibrationInterface.hpp.
References CalibrationInterface::calibrated.
1.5.3