28 if (m_helper !=
nullptr) {
35 m_buffer_ints.resize (size);
36 m_buffer_doubles.resize(size);
48 if (m_helper !=
nullptr)
59 std::lock_guard lock(m_imp_mutex);
67 std::lock_guard lock(m_imp_mutex);
78 std::lock_guard lock(m_imp_mutex);
89 std::lock_guard lock(m_imp_mutex);
102 std::lock_guard lock(m_imp_mutex);
113 std::lock_guard lock(m_imp_mutex);
126 std::lock_guard lock(m_imp_mutex);
yarp::dev::ControlBoardHelper * castToMapper(void *p)
void dutycycle2PWM(double dutycycle, int j, double &pwm, int &k)
void PWM2dutycycle(const double *pwm, double *dutycycle)
Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
virtual yarp::dev::ReturnValue setRefDutyCycleRaw(int m, double ref)=0
Sets the reference dutycycle of a single motor.
virtual yarp::dev::ReturnValue getDutyCycleRaw(int m, double *val)=0
Gets the current dutycycle of the output of the amplifier (i.e.
virtual yarp::dev::ReturnValue getRefDutyCyclesRaw(double *refs)=0
Gets the last reference sent using the setRefDutyCyclesRaw function.
virtual yarp::dev::ReturnValue getNumberOfMotorsRaw(int *number)=0
Retrieves the number of controlled motors from the current physical interface.
virtual yarp::dev::ReturnValue getRefDutyCycleRaw(int m, double *ref)=0
Gets the last reference sent using the setRefDutyCycleRaw function.
virtual yarp::dev::ReturnValue getDutyCyclesRaw(double *vals)=0
Gets the current dutycycle of the output of the amplifier (i.e.
virtual yarp::dev::ReturnValue setRefDutyCyclesRaw(const double *refs)=0
Sets the reference dutycycle for all motors.
bool initialize(int k, const int *amap, const double *dutyToPWM)
yarp::dev::ReturnValue getDutyCycle(int j, double *v) override
Gets the current dutycycle of the output of the amplifier (i.e.
yarp::dev::ReturnValue getRefDutyCycle(int j, double *v) override
Gets the last reference sent using the setRefDutyCycle function.
ImplementPWMControl(IPWMControlRaw *v)
yarp::dev::ReturnValue setRefDutyCycles(const double *v) override
Sets the reference dutycycle for all the motors.
yarp::dev::ReturnValue getNumberOfMotors(int *ax) override
Retrieves the number of controlled motors from the current physical interface.
yarp::dev::ReturnValue getRefDutyCycles(double *v) override
Gets the last reference sent using the setRefDutyCycles function.
yarp::dev::ReturnValue setRefDutyCycle(int j, double v) override
Sets the reference dutycycle to a single motor.
yarp::dev::ReturnValue getDutyCycles(double *v) override
Gets the current dutycycle of the output of the amplifier (i.e.
A mini-server for performing network communication in the background.
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.