HomePositionDetector Class Reference

This class represents a virtual Digital Input device with three bits denoting the Homing Status. More...

#include <HomePositionDetector.hpp>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

HomePositionDetector ( SensorInterface< double > *  _sensor,
EncoderInterface *  _encoder = 0 
) [inline]

Create a Home Position Detector with a sensor and an optional encoder.

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


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