#include <yarp/dev/ImplementPWMControl.h>
Inheritance diagram for yarp::dev::ImplementPWMControl: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. 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 yarp::dev::IPWMControl | |
| virtual | ~IPWMControl () |
Definition at line 34 of file ImplementPWMControl.h.
| ImplementPWMControl::ImplementPWMControl | ( | IPWMControlRaw * | v | ) |
Definition at line 21 of file ImplementPWMControl.cpp.
| ImplementPWMControl::~ImplementPWMControl | ( | ) |
Definition at line 41 of file ImplementPWMControl.cpp.
|
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 105 of file ImplementPWMControl.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 115 of file ImplementPWMControl.cpp.
|
overridevirtual |
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 63 of file ImplementPWMControl.cpp.
|
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 86 of file ImplementPWMControl.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 96 of file ImplementPWMControl.cpp.
| bool ImplementPWMControl::initialize | ( | int | k, |
| const int * | amap, | ||
| const double * | dutyToPWM | ||
| ) |
Definition at line 27 of file ImplementPWMControl.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 68 of file ImplementPWMControl.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 77 of file ImplementPWMControl.cpp.
| bool ImplementPWMControl::uninitialize | ( | ) |
Definition at line 46 of file ImplementPWMControl.cpp.