#include <yarp/dev/ImplementAmplifierControl.h>
Inheritance diagram for yarp::dev::ImplementAmplifierControl:Public Member Functions | |
| ImplementAmplifierControl (yarp::dev::IAmplifierControlRaw *y) | |
| virtual | ~ImplementAmplifierControl () |
| Destructor. | |
| bool | enableAmp (int j) override |
| Enable the amplifier on a specific joint. | |
| bool | disableAmp (int j) override |
| Disable the amplifier on a specific joint. | |
| bool | getAmpStatus (int *st) override |
| bool | getAmpStatus (int j, int *st) override |
| bool | getCurrents (double *vals) override |
| bool | getCurrent (int j, double *val) override |
| bool | setMaxCurrent (int j, double v) override |
| bool | getMaxCurrent (int j, double *v) override |
| Returns the maximum electric current allowed for a given motor. | |
| bool | getNominalCurrent (int m, double *val) override |
| bool | setNominalCurrent (int m, const double val) override |
| bool | getPeakCurrent (int m, double *val) override |
| bool | setPeakCurrent (int m, const double val) override |
| bool | getPWM (int j, double *val) override |
| bool | getPWMLimit (int j, double *val) override |
| bool | setPWMLimit (int j, const double val) override |
| bool | getPowerSupplyVoltage (int j, double *val) override |
Public Member Functions inherited from yarp::dev::IAmplifierControl | |
| virtual | ~IAmplifierControl () |
| Destructor. | |
Protected Member Functions | |
| bool | initialize (int size, const int *amap, const double *enc, const double *zos, const double *ampereFactor=NULL, const double *voltFactor=NULL) |
| Initialize the internal data and alloc memory. | |
| bool | uninitialize () |
| Clean up internal data and memory. | |
Protected Attributes | |
| IAmplifierControlRaw * | iAmplifier |
| void * | helper |
| double * | dTemp |
| int * | iTemp |
Definition at line 16 of file ImplementAmplifierControl.h.
| ImplementAmplifierControl::ImplementAmplifierControl | ( | yarp::dev::IAmplifierControlRaw * | y | ) |
Definition at line 18 of file ImplementAmplifierControl.cpp.
|
virtual |
Destructor.
Perform uninitialize if needed.
Definition at line 26 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Disable the amplifier on a specific joint.
All computations within the board will be carried out normally, but the output will be disabled.
Implements yarp::dev::IAmplifierControl.
Definition at line 73 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Enable the amplifier on a specific joint.
Be careful, check that the output of the controller is appropriate (usually zero), to avoid generating abrupt movements.
Implements yarp::dev::IAmplifierControl.
Definition at line 66 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 96 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 104 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 87 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 80 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Returns the maximum electric current allowed for a given motor.
The behavior of the board/amplifier when this limit is reached depends on the implementation.
| j | motor number |
| v | the return value |
Implements yarp::dev::IAmplifierControl.
Definition at line 120 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 129 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 141 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 190 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 169 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 176 of file ImplementAmplifierControl.cpp.
|
protected |
Initialize the internal data and alloc memory.
| size | is the number of controlled axes the driver deals with. |
| amap | is a lookup table mapping axes onto physical drivers. |
| enc | is an array containing the encoder to angles conversion factors. |
| zos | is an array containing the zeros of the encoders. |
Definition at line 31 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 112 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 161 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 153 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 183 of file ImplementAmplifierControl.cpp.
|
protected |
Clean up internal data and memory.
Definition at line 51 of file ImplementAmplifierControl.cpp.
|
protected |
Definition at line 21 of file ImplementAmplifierControl.h.
|
protected |
Definition at line 20 of file ImplementAmplifierControl.h.
|
protected |
Definition at line 19 of file ImplementAmplifierControl.h.
|
protected |
Definition at line 22 of file ImplementAmplifierControl.h.