A SensorInterface which reads its data from an analog channel. More...
#include <AnalogSensor.hpp>
Public Member Functions | |
AnalogSensor (RTT::AnalogInput *_ain, double _min_meas, double _max_meas, double _scale=1.0, double _offset=0.0) | |
Create an AnalogSensor, connected to an AnalogInput, with a minimal and maximal measurement value. | |
virtual int | readSensor (double &p) const |
virtual double | readSensor () const |
virtual double | maxMeasurement () const |
virtual double | minMeasurement () const |
virtual double | zeroMeasurement () const |
A SensorInterface which reads its data from an analog channel.
Definition at line 42 of file AnalogSensor.hpp.
AnalogSensor | ( | RTT::AnalogInput * | _ain, | |
double | _min_meas, | |||
double | _max_meas, | |||
double | _scale = 1.0 , |
|||
double | _offset = 0.0 | |||
) | [inline] |
Create an AnalogSensor, connected to an AnalogInput, with a minimal and maximal measurement value.
A scale and offset are used to convert the analog signal to the measurement.
Definition at line 56 of file AnalogSensor.hpp.