Interface for control boards implementing current control.
More...
#include <yarp/dev/ICurrentControl.h>
Interface for control boards implementing current control.
Definition at line 110 of file ICurrentControl.h.
◆ ~ICurrentControlRaw()
| virtual yarp::dev::ICurrentControlRaw::~ICurrentControlRaw |
( |
| ) |
|
|
inlinevirtual |
◆ getCurrentRangeRaw()
| virtual yarp::dev::ReturnValue 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 yarp::dev::ReturnValue 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()
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()
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()
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()
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()
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()
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]
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 yarp::dev::ReturnValue 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: