39 dTemp=
new double[size];
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 bool setMaxCurrentRaw(int j, double v)=0
virtual bool getPeakCurrentRaw(int m, double *val)
virtual bool getCurrentsRaw(double *vals)=0
virtual bool disableAmpRaw(int j)=0
Disable the amplifier on a specific joint.
virtual bool setNominalCurrentRaw(int m, const double val)
virtual bool getPowerSupplyVoltageRaw(int j, double *val)
virtual bool getAmpStatusRaw(int *st)=0
virtual bool getMaxCurrentRaw(int j, double *v)=0
Returns the maximum electric current allowed for a given motor.
virtual bool getPWMLimitRaw(int j, double *val)
virtual bool getPWMRaw(int j, double *val)
virtual bool enableAmpRaw(int j)=0
Enable the amplifier on a specific joint.
virtual bool getCurrentRaw(int j, double *val)=0
virtual bool getNominalCurrentRaw(int m, double *val)
virtual bool setPWMLimitRaw(int j, const double val)
virtual bool setPeakCurrentRaw(int m, const double val)
bool setPeakCurrent(int m, const double val) override
bool setNominalCurrent(int m, const double val) override
bool setMaxCurrent(int j, double v) override
virtual ~ImplementAmplifierControl()
Destructor.
bool getCurrent(int j, double *val) override
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.
IAmplifierControlRaw * iAmplifier
bool enableAmp(int j) override
Enable the amplifier on a specific joint.
bool getNominalCurrent(int m, double *val) override
bool getCurrents(double *vals) override
bool getPeakCurrent(int m, double *val) override
bool getPowerSupplyVoltage(int j, double *val) override
bool disableAmp(int j) override
Disable the amplifier on a specific joint.
bool getPWM(int j, double *val) override
bool getMaxCurrent(int j, double *v) override
Returns the maximum electric current allowed for a given motor.
bool getAmpStatus(int *st) override
bool uninitialize()
Clean up internal data and memory.
ImplementAmplifierControl(yarp::dev::IAmplifierControlRaw *y)
bool setPWMLimit(int j, const double val) override
bool getPWMLimit(int j, double *val) override
For streams capable of holding different kinds of content, check what they actually have.