This class represents a virtual Digital Input device with three bits denoting the Homing Status. More...
#include <HomePositionDetector.hpp>
Public Member Functions | |
HomePositionDetector (SensorInterface< double > *_sensor, EncoderInterface *_encoder=0) | |
Create a Home Position Detector with a sensor and an optional encoder. | |
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 three bits denoting the Homing Status.
The first bit (0) is on when the physical position is zero, the next bit (1) is on when the encoder position is zero, the third bit (2) is on when the encoder turn is zero. The encoder is optional.
Definition at line 47 of file HomePositionDetector.hpp.
HomePositionDetector | ( | SensorInterface< double > * | _sensor, | |
EncoderInterface * | _encoder = 0 | |||
) | [inline] |
Create a Home Position Detector with a sensor and an optional encoder.
_sensor | The sensor returning zero when the physical home position is reached. | |
_encoder | The encoder measuring the position. |
Definition at line 59 of file HomePositionDetector.hpp.