Interface for controlling an axis, by sending directly a PWM reference signal to a motor. More...
#include <yarp/dev/IPWMControl.h>
Inheritance diagram for yarp::dev::IPWMControl:Public Member Functions | |
| virtual | ~IPWMControl () |
| virtual yarp::dev::ReturnValue | getNumberOfMotors (int *number)=0 |
| Retrieves the number of controlled motors from the current physical interface. | |
| virtual yarp::dev::ReturnValue | setRefDutyCycle (int m, double ref)=0 |
| Sets the reference dutycycle to a single motor. | |
| virtual yarp::dev::ReturnValue | setRefDutyCycles (const double *refs)=0 |
| Sets the reference dutycycle for all the motors. | |
| virtual yarp::dev::ReturnValue | getRefDutyCycle (int m, double *ref)=0 |
| Gets the last reference sent using the setRefDutyCycle function. | |
| virtual yarp::dev::ReturnValue | getRefDutyCycles (double *refs)=0 |
| Gets the last reference sent using the setRefDutyCycles function. | |
| virtual yarp::dev::ReturnValue | getDutyCycle (int m, double *val)=0 |
| Gets the current dutycycle of the output of the amplifier (i.e. | |
| virtual yarp::dev::ReturnValue | getDutyCycles (double *vals)=0 |
| Gets the current dutycycle of the output of the amplifier (i.e. | |
Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
Definition at line 23 of file IPWMControl.h.
|
inlinevirtual |
Definition at line 26 of file IPWMControl.h.
|
pure virtual |
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%) |
Implemented in ControlBoard_nwc_yarp, yarp::dev::ImplementPWMControl, yarp::dev::xHandControlBoard, and ControlBoardRemapper.
|
pure virtual |
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%) |
Implemented in ControlBoard_nwc_yarp, yarp::dev::ImplementPWMControl, yarp::dev::xHandControlBoard, and ControlBoardRemapper.
|
pure virtual |
Retrieves the number of controlled motors from the current physical interface.
| number | returns the number of controlled motors. |
Implemented in yarp::dev::ImplementPWMControl, yarp::dev::xHandControlBoard, ControlBoardRemapper, and ControlBoard_nwc_yarp.
|
pure virtual |
Gets the last reference sent using the setRefDutyCycle function.
| m | motor number |
| ref | pointer to storage for return value, expressed as percentage (-100% +100%) |
Implemented in ControlBoard_nwc_yarp, yarp::dev::ImplementPWMControl, yarp::dev::xHandControlBoard, and ControlBoardRemapper.
|
pure virtual |
Gets the last reference sent using the setRefDutyCycles function.
| refs | pointer to the vector that will store the values, expressed as percentage (-100% +100%) |
Implemented in yarp::dev::xHandControlBoard, ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementPWMControl.
|
pure virtual |
Sets the reference dutycycle to a single motor.
| m | motor number |
| ref | the dutycycle, expressed as percentage (-100% +100%) |
Implemented in ControlBoard_nwc_yarp, yarp::dev::ImplementPWMControl, yarp::dev::xHandControlBoard, and ControlBoardRemapper.
|
pure virtual |
Sets the reference dutycycle for all the motors.
| refs | the dutycycle, expressed as percentage (-100% +100%) |
Implemented in yarp::dev::xHandControlBoard, ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementPWMControl.