AbsoluteEncoderSensor Class Reference

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

#include <AbsoluteEncoderSensor.hpp>

List of all members.

Public Member Functions

 AbsoluteEncoderSensor (EncoderInterface *_enc, double _unit_to_inc, int _posOffset, double _minpos, double _maxpos)
 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 double maxMeasurement () const
virtual double minMeasurement () const
virtual double zeroMeasurement () const

Detailed Description

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

Definition at line 43 of file AbsoluteEncoderSensor.hpp.


Constructor & Destructor Documentation

AbsoluteEncoderSensor ( EncoderInterface *  _enc,
double  _unit_to_inc,
int  _posOffset,
double  _minpos,
double  _maxpos 
) [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 )
_posOffset Offset (in encoder ticks) on absolute position reading
_minpos The minimal, physical position, after calibration
_maxpos The maximal, physical position, after calibration

Definition at line 64 of file AbsoluteEncoderSensor.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