A sensor reading a single Incremental Encoder and converting the counter to a physical unit, with support for calibration. More...
#include <IncrementalEncoderSensor.hpp>
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 |
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.
| IncrementalEncoderSensor | ( | EncoderInterface * | _enc, | |
| double | _unit_to_inc, | |||
| double | _calPos, | |||
| double | _minpos, | |||
| double | _maxpos, | |||
| int | _resolution | |||
| ) | [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 ) | |
| _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.
1.6.3