IncrementalEncoderSensor Class Reference

A sensor reading a single Incremental Encoder and converting the counter to a physical unit, with support for calibration. More...

#include <IncrementalEncoderSensor.hpp>

List of all members.

Public Member Functions

 IncrementalEncoderSensor (EncoderInterface *_enc, double _unit_to_inc, double _calPos, double _minpos, double _maxpos, int _resolution)
 Create a new EncoderInterface to SensorInterface Object.
virtual int readSensor (double &p) const
void limit (double _min, double _max)
 Set the minimal and maximal position.
virtual void calibrate ()
virtual void unCalibrate ()
virtual bool isCalibrated () const
virtual double readSensor () const
virtual void writeSensor (double q) const
virtual double maxMeasurement () const
virtual double minMeasurement () const
virtual double zeroMeasurement () const

Detailed Description

A sensor reading a single Incremental Encoder and converting the counter to a physical unit, with support for calibration.

Definition at line 43 of file IncrementalEncoderSensor.hpp.


Constructor & Destructor Documentation

IncrementalEncoderSensor ( EncoderInterface *  _enc,
double  _unit_to_inc,
double  _calPos,
double  _minpos,
double  _maxpos,
int  _resolution 
) [inline]

Create a new EncoderInterface to SensorInterface Object.

Parameters:
_enc The Encoder to use
_unit_to_inc Conversion of physical units to increments (e.g. increments / rad )
_calPos Position (in physical units, e.g. [rad]) where calibrate() will be called
_minpos The minimal, physical position, after calibration
_maxpos The maximal, physical position, after calibration

Definition at line 67 of file IncrementalEncoderSensor.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