#include <yarp/dev/ImplementPWMControl.h>
Public Member Functions | |
bool | initialize (int k, const int *amap, const double *dutyToPWM) |
bool | uninitialize () |
ImplementPWMControl (IPWMControlRaw *v) | |
~ImplementPWMControl () | |
bool | getNumberOfMotors (int *ax) override |
Retrieves the number of controlled motors from the current physical interface. | |
bool | setRefDutyCycle (int j, double v) override |
Sets the reference dutycycle to a single motor. | |
bool | setRefDutyCycles (const double *v) override |
Sets the reference dutycycle for all the motors. | |
bool | getRefDutyCycle (int j, double *v) override |
Gets the last reference sent using the setRefDutyCycle function. | |
bool | getRefDutyCycles (double *v) override |
Gets the last reference sent using the setRefDutyCycles function. | |
bool | getDutyCycle (int j, double *v) override |
Gets the current dutycycle of the output of the amplifier (i.e. | |
bool | getDutyCycles (double *v) override |
Gets the current dutycycle of the output of the amplifier (i.e. | |
![]() | |
virtual | ~IPWMControl () |
Definition at line 25 of file ImplementPWMControl.h.
ImplementPWMControl::ImplementPWMControl | ( | IPWMControlRaw * | v | ) |
Definition at line 18 of file ImplementPWMControl.cpp.
ImplementPWMControl::~ImplementPWMControl | ( | ) |
Definition at line 39 of file ImplementPWMControl.cpp.
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 103 of file ImplementPWMControl.cpp.
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 113 of file ImplementPWMControl.cpp.
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 61 of file ImplementPWMControl.cpp.
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 84 of file ImplementPWMControl.cpp.
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 94 of file ImplementPWMControl.cpp.
Definition at line 24 of file ImplementPWMControl.cpp.
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 66 of file ImplementPWMControl.cpp.
Sets the reference dutycycle for all the motors.
refs | the dutycycle, expressed as percentage (-100% +100%) |
Implements yarp::dev::IPWMControl.
Definition at line 75 of file ImplementPWMControl.cpp.
bool ImplementPWMControl::uninitialize | ( | ) |
Definition at line 44 of file ImplementPWMControl.cpp.