|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
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);
54 #endif // YARP_DEV_IMPLEMENTPWMCONTROL_H
virtual bool getNumberOfMotors(int *number)=0
Retrieves the number of controlled motors from the current physical interface.
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.
virtual bool getDutyCycle(int m, double *val)=0
Gets the current dutycycle of the output of the amplifier (i.e.
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.
virtual bool setRefDutyCycles(const double *refs)=0
Sets the reference dutycycle for all the motors.
Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
ImplementPWMControl(IPWMControlRaw *v)
virtual bool getRefDutyCycles(double *refs)=0
Gets the last reference sent using the setRefDutyCycles function.
The main, catch-all namespace for YARP.
virtual bool setRefDutyCycle(int m, double ref)=0
Sets the reference dutycycle to a single motor.