A sensor reading a single Absolute Encoder and converting the counter to a physical unit, with support for calibration. More...
#include <AbsoluteEncoderSensor.hpp>
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 |
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.
AbsoluteEncoderSensor | ( | EncoderInterface * | _enc, | |
double | _unit_to_inc, | |||
int | _posOffset, | |||
double | _minpos, | |||
double | _maxpos | |||
) | [inline] |
Create a new EncoderInterface to SensorInterface Object.
_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.