#include <yarp/dev/ImplementCurrentControl.h>
|
bool | initialize (int size, const int *amap, const double *ampsToSens) |
| Initialize the internal data and alloc memory. More...
|
|
bool | uninitialize () |
| Clean up internal data and memory. More...
|
|
Definition at line 32 of file ImplementCurrentControl.h.
◆ ImplementCurrentControl()
◆ ~ImplementCurrentControl()
ImplementCurrentControl::~ImplementCurrentControl |
( |
| ) |
|
|
virtual |
◆ getCurrent()
bool ImplementCurrentControl::getCurrent |
( |
int |
m, |
|
|
double * |
curr |
|
) |
| |
|
overridevirtual |
Get the instantaneous current measurement for a single motor.
- Parameters
-
m | motor number |
curr | pointer to the result value. Value is expressed in amperes. |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 145 of file ImplementCurrentControl.cpp.
◆ getCurrentRange()
bool ImplementCurrentControl::getCurrentRange |
( |
int |
m, |
|
|
double * |
min, |
|
|
double * |
max |
|
) |
| |
|
overridevirtual |
Get the full scale of the current measurement for a given motor (e.g.
-20A +20A) Reference values set by user with methods such as setRefCurrent() should be in this range. This method is not related to the current overload protection methods belonging to the iAmplifierControl interface.
- Parameters
-
m | motor number |
min | minimum current of the motor m |
max | maximum current of the motor m |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 169 of file ImplementCurrentControl.cpp.
◆ getCurrentRanges()
bool ImplementCurrentControl::getCurrentRanges |
( |
double * |
min, |
|
|
double * |
max |
|
) |
| |
|
overridevirtual |
Get the full scale of the current measurements for all motors motor (e.g.
-20A +20A) Reference values set by user with methods such as setRefCurrent() should be in this range. This method is not related to the current overload protection methods belonging to the iAmplifierControl interface.
- Parameters
-
min | pointer to the array that will store minimum currents |
max | pointer to the array that will store maximum currents |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 157 of file ImplementCurrentControl.cpp.
◆ getCurrents()
bool ImplementCurrentControl::getCurrents |
( |
double * |
currs | ) |
|
|
overridevirtual |
Get the instantaneous current measurement for all motors.
- Parameters
-
currs | pointer to the array that will store the output. Values are expressed in amperes. |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 115 of file ImplementCurrentControl.cpp.
◆ getNumberOfMotors()
bool ImplementCurrentControl::getNumberOfMotors |
( |
int * |
ax | ) |
|
|
overridevirtual |
◆ getRefCurrent()
bool ImplementCurrentControl::getRefCurrent |
( |
int |
m, |
|
|
double * |
curr |
|
) |
| |
|
overridevirtual |
Get the reference value of the current for a single motor.
- Parameters
-
m | motor number |
curr | the current reference value for motor m. Value is expressed in amperes. |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 76 of file ImplementCurrentControl.cpp.
◆ getRefCurrents()
bool ImplementCurrentControl::getRefCurrents |
( |
double * |
currs | ) |
|
|
overridevirtual |
Get the reference value of the currents for all motors.
- Parameters
-
currs | pointer to the array to be filled with reference current values. Values are expressed in amperes. |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 88 of file ImplementCurrentControl.cpp.
◆ initialize()
bool ImplementCurrentControl::initialize |
( |
int |
size, |
|
|
const int * |
amap, |
|
|
const double * |
ampsToSens |
|
) |
| |
|
protected |
Initialize the internal data and alloc memory.
- Parameters
-
size | is the number of controlled axes the driver deals with. |
amap | is a lookup table mapping axes onto physical drivers. |
- Returns
- true if initialized succeeded, false if it wasn't executed, or assert.
Definition at line 31 of file ImplementCurrentControl.cpp.
◆ setRefCurrent()
bool ImplementCurrentControl::setRefCurrent |
( |
int |
m, |
|
|
double |
curr |
|
) |
| |
|
overridevirtual |
Set the reference value of the current for a single motor.
- Parameters
-
m | motor number |
curr | the current reference value for motor m. Value is expressed in amperes. |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 106 of file ImplementCurrentControl.cpp.
◆ setRefCurrents() [1/2]
bool ImplementCurrentControl::setRefCurrents |
( |
const double * |
currs | ) |
|
|
overridevirtual |
Set the reference value of the currents for all motors.
- Parameters
-
currs | the array containing the reference current values. Values are expressed in amperes. |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 97 of file ImplementCurrentControl.cpp.
◆ setRefCurrents() [2/2]
bool ImplementCurrentControl::setRefCurrents |
( |
const int |
n_motor, |
|
|
const int * |
motors, |
|
|
const double * |
currs |
|
) |
| |
|
overridevirtual |
Set the reference value of the current for a group of motors.
- Parameters
-
n_motor | size of motors ans currs arrays |
motors | pointer to the array containing the list of motor numbers |
currs | pointer to the array specifying the new current references |
- Returns
- true/false on success/failure
Implements yarp::dev::ICurrentControl.
Definition at line 124 of file ImplementCurrentControl.cpp.
◆ uninitialize()
bool ImplementCurrentControl::uninitialize |
( |
| ) |
|
|
protected |
Clean up internal data and memory.
- Returns
- true if uninitialization is executed, false otherwise.
Definition at line 48 of file ImplementCurrentControl.cpp.
◆ doubleBuffManager
◆ helper
void* yarp::dev::ImplementCurrentControl::helper |
|
protected |
◆ iCurrentRaw
◆ intBuffManager
The documentation for this class was generated from the following files: