This class represents a virtual Digital Input device with two bits denoting software end limit reaches. More...
#include <EndLimitDetector.hpp>
Public Member Functions | |
EndLimitDetector (SensorInterface< double > *_sensor, double _minpos=-numeric_limits< double >::max(), double _maxpos=numeric_limits< double >::max()) | |
Create a End Limit Detector of a sensor. | |
virtual bool | isOn (unsigned int bit=0) const |
virtual bool | isOff (unsigned int bit=0) const |
virtual bool | readBit (unsigned int bit=0) const |
virtual unsigned int | readSequence (unsigned int start_bit, unsigned int stop_bit) const |
virtual unsigned int | nbOfInputs () const |
This class represents a virtual Digital Input device with two bits denoting software end limit reaches.
(e.g. end of travel)
The first bit (0) is on when the physical limit is less than the minimal limit, the second bit (1) is on when the physical limit is greater than the maximal limit.
The sensor's minMeasurement() and maxMeasurement() values are always taken into account.
Definition at line 52 of file EndLimitDetector.hpp.
EndLimitDetector | ( | SensorInterface< double > * | _sensor, | |
double | _minpos = -numeric_limits<double>::max() , |
|||
double | _maxpos = numeric_limits<double>::max() | |||
) | [inline] |
Create a End Limit Detector of a sensor.
_sensor | The sensor returning a calibrated value. | |
_minpos | The minimal limit, if omitted, the _sensor->minMeasurement() is taken. | |
_maxpos | The maximal limit, if omitted, the _sensor->maxMeasurement() is taken. |
Definition at line 66 of file EndLimitDetector.hpp.