Interface for control boards implementing current control.
More...
#include <yarp/dev/ICurrentControl.h>
|
virtual | ~ICurrentControlRaw () |
| Destructor. More...
|
|
virtual bool | getNumberOfMotorsRaw (int *number)=0 |
| Retrieves the number of controlled motors from the current physical interface. More...
|
|
virtual bool | getCurrentRaw (int m, double *curr)=0 |
| Get the instantaneous current measurement for a single motor. More...
|
|
virtual bool | getCurrentsRaw (double *currs)=0 |
| Get the instantaneous current measurement for all motors. More...
|
|
virtual bool | getCurrentRangeRaw (int m, double *min, double *max)=0 |
| Get the full scale of the current measurement for a given motor (e.g. More...
|
|
virtual bool | getCurrentRangesRaw (double *min, double *max)=0 |
| Get the full scale of the current measurements for all motors motor (e.g. More...
|
|
virtual bool | setRefCurrentsRaw (const double *currs)=0 |
| Set the reference value of the currents for all motors. More...
|
|
virtual bool | setRefCurrentRaw (int m, double curr)=0 |
| Set the reference value of the current for a single motor. More...
|
|
virtual bool | setRefCurrentsRaw (const int n_motor, const int *motors, const double *currs)=0 |
| Set the reference value of the current for a group of motors. More...
|
|
virtual bool | getRefCurrentsRaw (double *currs)=0 |
| Get the reference value of the currents for all motors. More...
|
|
virtual bool | getRefCurrentRaw (int m, double *curr)=0 |
| Get the reference value of the current for a single motor. More...
|
|
Interface for control boards implementing current control.
Definition at line 113 of file ICurrentControl.h.
◆ ~ICurrentControlRaw()
virtual yarp::dev::ICurrentControlRaw::~ICurrentControlRaw |
( |
| ) |
|
|
inlinevirtual |
◆ getCurrentRangeRaw()
virtual bool yarp::dev::ICurrentControlRaw::getCurrentRangeRaw |
( |
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 FakeMotionControl.
◆ getCurrentRangesRaw()
virtual bool yarp::dev::ICurrentControlRaw::getCurrentRangesRaw |
( |
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 FakeMotionControl.
◆ getCurrentRaw()
virtual bool yarp::dev::ICurrentControlRaw::getCurrentRaw |
( |
int |
m, |
|
|
double * |
curr |
|
) |
| |
|
pure virtual |
Get the instantaneous current measurement for a single motor.
- Parameters
-
m | motor number |
curr | pointer to the result value |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ getCurrentsRaw()
virtual bool yarp::dev::ICurrentControlRaw::getCurrentsRaw |
( |
double * |
currs | ) |
|
|
pure virtual |
Get the instantaneous current measurement for all motors.
- Parameters
-
currs | pointer to the array that will store the output |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ getNumberOfMotorsRaw()
virtual bool yarp::dev::ICurrentControlRaw::getNumberOfMotorsRaw |
( |
int * |
number | ) |
|
|
pure virtual |
Retrieves the number of controlled motors from the current physical interface.
- Parameters
-
number | returns the number of controlled motors. |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ getRefCurrentRaw()
virtual bool yarp::dev::ICurrentControlRaw::getRefCurrentRaw |
( |
int |
m, |
|
|
double * |
curr |
|
) |
| |
|
pure virtual |
Get the reference value of the current for a single motor.
- Parameters
-
m | motor number |
curr | the current reference value for motor m |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ getRefCurrentsRaw()
virtual bool yarp::dev::ICurrentControlRaw::getRefCurrentsRaw |
( |
double * |
currs | ) |
|
|
pure virtual |
Get the reference value of the currents for all motors.
- Parameters
-
currs | pointer to the array to be filled with reference current values. |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ setRefCurrentRaw()
virtual bool yarp::dev::ICurrentControlRaw::setRefCurrentRaw |
( |
int |
m, |
|
|
double |
curr |
|
) |
| |
|
pure virtual |
Set the reference value of the current for a single motor.
- Parameters
-
m | motor number |
curr | the current reference value for motor m |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ setRefCurrentsRaw() [1/2]
virtual bool yarp::dev::ICurrentControlRaw::setRefCurrentsRaw |
( |
const double * |
currs | ) |
|
|
pure virtual |
Set the reference value of the currents for all motors.
- Parameters
-
currs | the array containt the reference current values |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ setRefCurrentsRaw() [2/2]
virtual bool yarp::dev::ICurrentControlRaw::setRefCurrentsRaw |
( |
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 of motor numbers |
refs | pointer to the array specifying the new current reference |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
The documentation for this class was generated from the following file: