66 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
76 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
86 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,currs)
96 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
97 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,c)
109 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,st)
120 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,k)
121 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,st)
132 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,m)
143 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
144 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,v)
156 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,m)
157 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,curr)
172 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,m)
173 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,curr)
188 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,m)
199 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,m)
210 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,m)
211 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,pwm)
221 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,m)
222 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,limit)
232 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,m)
242 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,m)
243 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,voltage)
yarp::dev::ControlBoardHelper * castToMapper(void *p)
void ampereA2S(double ampere, int j, double &sens, int &k)
void ampereS2A(const double *sens, double *ampere)
Interface for control devices, amplifier commands.
virtual yarp::dev::ReturnValue setMaxCurrentRaw(int j, double v)=0
virtual yarp::dev::ReturnValue getPowerSupplyVoltageRaw(int j, double *val)=0
virtual yarp::dev::ReturnValue disableAmpRaw(int j)=0
Disable the amplifier on a specific joint.
virtual yarp::dev::ReturnValue setPWMLimitRaw(int j, const double val)=0
virtual yarp::dev::ReturnValue setNominalCurrentRaw(int m, const double val)=0
virtual yarp::dev::ReturnValue getMaxCurrentRaw(int j, double *v)=0
Returns the maximum electric current allowed for a given motor.
virtual yarp::dev::ReturnValue getCurrentRaw(int j, double *val)=0
virtual yarp::dev::ReturnValue getPeakCurrentRaw(int m, double *val)=0
virtual yarp::dev::ReturnValue setPeakCurrentRaw(int m, const double val)=0
virtual yarp::dev::ReturnValue getPWMRaw(int j, double *val)=0
virtual yarp::dev::ReturnValue enableAmpRaw(int j)=0
Enable the amplifier on a specific joint.
virtual yarp::dev::ReturnValue getAmpStatusRaw(int *st)=0
virtual yarp::dev::ReturnValue getCurrentsRaw(double *vals)=0
virtual yarp::dev::ReturnValue getNominalCurrentRaw(int m, double *val)=0
virtual yarp::dev::ReturnValue getPWMLimitRaw(int j, double *val)=0
yarp::dev::ReturnValue disableAmp(int j) override
Disable the amplifier on a specific joint.
yarp::dev::ReturnValue getPWM(int j, double *val) override
std::vector< int > m_buffer_ints
yarp::dev::ReturnValue getPWMLimit(int j, double *val) override
yarp::dev::ReturnValue setPeakCurrent(int m, const double val) override
yarp::dev::ReturnValue setNominalCurrent(int m, const double val) override
virtual ~ImplementAmplifierControl()
Destructor.
bool initialize(int size, const int *amap, const double *enc, const double *zos, const double *ampereFactor=NULL, const double *voltFactor=NULL)
Initialize the internal data and alloc memory.
yarp::dev::ReturnValue getCurrent(int j, double *val) override
yarp::dev::ReturnValue getPowerSupplyVoltage(int j, double *val) override
yarp::dev::ReturnValue setMaxCurrent(int j, double v) override
yarp::dev::ReturnValue enableAmp(int j) override
Enable the amplifier on a specific joint.
yarp::dev::ReturnValue getAmpStatus(int *st) override
bool uninitialize()
Clean up internal data and memory.
IAmplifierControlRaw * m_iraw
ImplementAmplifierControl(yarp::dev::IAmplifierControlRaw *y)
yarp::dev::ReturnValue getCurrents(double *vals) override
std::vector< double > m_buffer_doubles
yarp::dev::ReturnValue getPeakCurrent(int m, double *val) override
yarp::dev::ReturnValue getMaxCurrent(int j, double *v) override
Returns the maximum electric current allowed for a given motor.
yarp::dev::ReturnValue getNominalCurrent(int m, double *val) override
yarp::dev::ReturnValue setPWMLimit(int j, const double val) override
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.