#include <ControlBoardWrapper/ControlBoardWrapperPWMControl.h>
Public Member Functions | |
bool | getNumberOfMotors (int *num) override |
Retrieves the number of controlled motors from the current physical interface. More... | |
bool | setRefDutyCycle (int j, double v) override |
Sets the reference dutycycle to a single motor. More... | |
bool | setRefDutyCycles (const double *v) override |
Sets the reference dutycycle for all the motors. More... | |
bool | getRefDutyCycle (int j, double *v) override |
Gets the last reference sent using the setRefDutyCycle function. More... | |
bool | getRefDutyCycles (double *v) override |
Gets the last reference sent using the setRefDutyCycles function. More... | |
bool | getDutyCycle (int j, double *v) override |
Gets the current dutycycle of the output of the amplifier (i.e. More... | |
bool | getDutyCycles (double *v) override |
Gets the current dutycycle of the output of the amplifier (i.e. More... | |
Public Member Functions inherited from ControlBoardWrapperCommon | |
bool | getAxes (int *ax) |
bool | setRefAcceleration (int j, double acc) |
bool | setRefAccelerations (const double *accs) |
bool | setRefAccelerations (const int n_joints, const int *joints, const double *accs) |
bool | getRefAcceleration (int j, double *acc) |
bool | getRefAccelerations (double *accs) |
bool | getRefAccelerations (const int n_joints, const int *joints, double *accs) |
bool | stop (int j) |
bool | stop () |
bool | stop (const int n_joint, const int *joints) |
bool | getNumberOfMotors (int *num) |
bool | getCurrent (int m, double *curr) |
bool | getCurrents (double *currs) |
void | printError (const std::string &func_name, const std::string &info, bool result) |
Public Member Functions inherited from yarp::dev::IPWMControl | |
virtual | ~IPWMControl () |
Additional Inherited Members | |
Public Attributes inherited from ControlBoardWrapperCommon | |
WrappedDevice | device |
size_t | controlledJoints {0} |
std::string | partName |
std::mutex | rpcDataMutex |
MultiJointData | rpcData |
std::mutex | timeMutex |
yarp::os::Stamp | time |
Definition at line 17 of file ControlBoardWrapperPWMControl.h.
|
overridevirtual |
Gets the current dutycycle of the output of the amplifier (i.e.
pwm value sent to the motor)
m | motor number |
val | pointer to storage for return value, expressed as percentage (-100% +100%) |
Implements yarp::dev::IPWMControl.
Definition at line 106 of file ControlBoardWrapperPWMControl.cpp.
|
overridevirtual |
Gets the current dutycycle of the output of the amplifier (i.e.
pwm values sent to all motors)
vals | pointer to the vector that will store the values, expressed as percentage (-100% +100%) |
Implements yarp::dev::IPWMControl.
Definition at line 128 of file ControlBoardWrapperPWMControl.cpp.
|
inlineoverridevirtual |
Retrieves the number of controlled motors from the current physical interface.
number | returns the number of controlled motors. |
Implements yarp::dev::IPWMControl.
Definition at line 22 of file ControlBoardWrapperPWMControl.h.
|
overridevirtual |
Gets the last reference sent using the setRefDutyCycle function.
m | motor number |
ref | pointer to storage for return value, expressed as percentage (-100% +100%) |
Implements yarp::dev::IPWMControl.
Definition at line 58 of file ControlBoardWrapperPWMControl.cpp.
|
overridevirtual |
Gets the last reference sent using the setRefDutyCycles function.
refs | pointer to the vector that will store the values, expressed as percentage (-100% +100%) |
Implements yarp::dev::IPWMControl.
Definition at line 80 of file ControlBoardWrapperPWMControl.cpp.
|
overridevirtual |
Sets the reference dutycycle to a single motor.
m | motor number |
ref | the dutycycle, expressed as percentage (-100% +100%) |
Implements yarp::dev::IPWMControl.
Definition at line 14 of file ControlBoardWrapperPWMControl.cpp.
|
overridevirtual |
Sets the reference dutycycle for all the motors.
refs | the dutycycle, expressed as percentage (-100% +100%) |
Implements yarp::dev::IPWMControl.
Definition at line 36 of file ControlBoardWrapperPWMControl.cpp.