10 #ifndef YARP_DEV_IMPLEMENTPWMCONTROL_H
11 #define YARP_DEV_IMPLEMENTPWMCONTROL_H
19 class ImplementPWMControl;
28 class FixedSizeBuffersManager;
40 bool initialize(
int k,
const int *amap,
const double* dutyToPWM);
Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
virtual bool getDutyCycle(int m, double *val)=0
Gets the current dutycycle of the output of the amplifier (i.e.
virtual bool getNumberOfMotors(int *number)=0
Retrieves the number of controlled motors from the current physical interface.
virtual bool getRefDutyCycles(double *refs)=0
Gets the last reference sent using the setRefDutyCycles function.
virtual bool setRefDutyCycle(int m, double ref)=0
Sets the reference dutycycle to a single motor.
virtual bool setRefDutyCycles(const double *refs)=0
Sets the reference dutycycle for all the motors.
virtual bool getRefDutyCycle(int m, double *ref)=0
Gets the last reference sent using the setRefDutyCycle function.
virtual bool getDutyCycles(double *vals)=0
Gets the current dutycycle of the output of the amplifier (i.e.
bool initialize(int k, const int *amap, const double *dutyToPWM)
ImplementPWMControl(IPWMControlRaw *v)
The main, catch-all namespace for YARP.