Interface for control boards implementing current control.
More...
#include <yarp/dev/ICurrentControl.h>
|
virtual | ~ICurrentControl () |
| Destructor.
|
|
virtual bool | getNumberOfMotors (int *ax)=0 |
| Retrieves the number of controlled axes from the current physical interface.
|
|
virtual bool | getCurrent (int m, double *curr)=0 |
| Get the instantaneous current measurement for a single motor.
|
|
virtual bool | getCurrents (double *currs)=0 |
| Get the instantaneous current measurement for all motors.
|
|
virtual bool | getCurrentRange (int m, double *min, double *max)=0 |
| Get the full scale of the current measurement for a given motor (e.g.
|
|
virtual bool | getCurrentRanges (double *min, double *max)=0 |
| Get the full scale of the current measurements for all motors motor (e.g.
|
|
virtual bool | setRefCurrents (const double *currs)=0 |
| Set the reference value of the currents for all motors.
|
|
virtual bool | setRefCurrent (int m, double curr)=0 |
| Set the reference value of the current for a single motor.
|
|
virtual bool | setRefCurrents (const int n_motor, const int *motors, const double *currs)=0 |
| Set the reference value of the current for a group of motors.
|
|
virtual bool | getRefCurrents (double *currs)=0 |
| Get the reference value of the currents for all motors.
|
|
virtual bool | getRefCurrent (int m, double *curr)=0 |
| Get the reference value of the current for a single motor.
|
|
Interface for control boards implementing current control.
Definition at line 22 of file ICurrentControl.h.
◆ ~ICurrentControl()
virtual yarp::dev::ICurrentControl::~ICurrentControl |
( |
| ) |
|
|
inlinevirtual |
◆ getCurrent()
virtual bool yarp::dev::ICurrentControl::getCurrent |
( |
int |
m, |
|
|
double * |
curr |
|
) |
| |
|
pure virtual |
◆ getCurrentRange()
virtual bool yarp::dev::ICurrentControl::getCurrentRange |
( |
int |
m, |
|
|
double * |
min, |
|
|
double * |
max |
|
) |
| |
|
pure virtual |
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
Implemented in RemoteControlBoard, yarp::dev::ImplementCurrentControl, and ControlBoardRemapper.
◆ getCurrentRanges()
virtual bool yarp::dev::ICurrentControl::getCurrentRanges |
( |
double * |
min, |
|
|
double * |
max |
|
) |
| |
|
pure virtual |
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
Implemented in ControlBoardRemapper, RemoteControlBoard, and yarp::dev::ImplementCurrentControl.
◆ getCurrents()
virtual bool yarp::dev::ICurrentControl::getCurrents |
( |
double * |
currs | ) |
|
|
pure virtual |
◆ getNumberOfMotors()
virtual bool yarp::dev::ICurrentControl::getNumberOfMotors |
( |
int * |
ax | ) |
|
|
pure virtual |
◆ getRefCurrent()
virtual bool yarp::dev::ICurrentControl::getRefCurrent |
( |
int |
m, |
|
|
double * |
curr |
|
) |
| |
|
pure virtual |
◆ getRefCurrents()
virtual bool yarp::dev::ICurrentControl::getRefCurrents |
( |
double * |
currs | ) |
|
|
pure virtual |
◆ setRefCurrent()
virtual bool yarp::dev::ICurrentControl::setRefCurrent |
( |
int |
m, |
|
|
double |
curr |
|
) |
| |
|
pure virtual |
◆ setRefCurrents() [1/2]
virtual bool yarp::dev::ICurrentControl::setRefCurrents |
( |
const double * |
currs | ) |
|
|
pure virtual |
◆ setRefCurrents() [2/2]
virtual bool yarp::dev::ICurrentControl::setRefCurrents |
( |
const int |
n_motor, |
|
|
const int * |
motors, |
|
|
const double * |
currs |
|
) |
| |
|
pure virtual |
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
Implemented in RemoteControlBoard, yarp::dev::ImplementCurrentControl, and ControlBoardRemapper.
The documentation for this class was generated from the following file: