EndLimitDetector Class Reference

This class represents a virtual Digital Input device with two bits denoting software end limit reaches. More...

#include <EndLimitDetector.hpp>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
_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.


The documentation for this class was generated from the following file:
Generated on Thu Dec 23 15:05:28 2010 for OrocosComponentLibrary by  doxygen 1.6.3