#include <yarp/dev/ImplementAmplifierControl.h>
Inheritance diagram for yarp::dev::ImplementAmplifierControl:Public Member Functions | |
| ImplementAmplifierControl (yarp::dev::IAmplifierControlRaw *y) | |
| virtual | ~ImplementAmplifierControl () |
| Destructor. More... | |
| bool | enableAmp (int j) override |
| Enable the amplifier on a specific joint. More... | |
| bool | disableAmp (int j) override |
| Disable the amplifier on a specific joint. More... | |
| 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. More... | |
| 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. More... | |
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. More... | |
| bool | uninitialize () |
| Clean up internal data and memory. More... | |
Protected Attributes | |
| IAmplifierControlRaw * | iAmplifier |
| void * | helper |
| double * | dTemp |
| int * | iTemp |
Definition at line 23 of file ImplementAmplifierControl.h.
| ImplementAmplifierControl::ImplementAmplifierControl | ( | yarp::dev::IAmplifierControlRaw * | y | ) |
Definition at line 21 of file ImplementAmplifierControl.cpp.
|
virtual |
Destructor.
Perform uninitialize if needed.
Definition at line 29 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 74 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 67 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 97 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 105 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 88 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 81 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 121 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 130 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 142 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 191 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 170 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 177 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 34 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Implements yarp::dev::IAmplifierControl.
Definition at line 113 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 162 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 154 of file ImplementAmplifierControl.cpp.
|
overridevirtual |
Reimplemented from yarp::dev::IAmplifierControl.
Definition at line 184 of file ImplementAmplifierControl.cpp.
|
protected |
Clean up internal data and memory.
Definition at line 53 of file ImplementAmplifierControl.cpp.
|
protected |
Definition at line 28 of file ImplementAmplifierControl.h.
|
protected |
Definition at line 27 of file ImplementAmplifierControl.h.
|
protected |
Definition at line 26 of file ImplementAmplifierControl.h.
|
protected |
Definition at line 29 of file ImplementAmplifierControl.h.