6#ifndef YARP_DEV_IMPLEMENTAMPLIFIERCONTROL_H
7#define YARP_DEV_IMPLEMENTAMPLIFIERCONTROL_H
13class ImplementAmplifierControl;
20 void* m_helper=
nullptr;
33 bool initialize (
int size,
const int *amap,
const double *enc,
const double *zos,
const double *ampereFactor=NULL,
const double *voltFactor=NULL);
define control board standard interfaces
Interface for control devices, amplifier commands.
Interface for control devices, amplifier commands.
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.
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
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.