22 size_t subIndex =
device.
lut[j].deviceEntry;
45 size_t subIndex =
device.
lut[j].deviceEntry;
79 for (
size_t juser = p->
wbase, jdevice = p->
base; juser <= p->wtop; juser++, jdevice++) {
80 st[juser] = status[jdevice];
103 size_t subIndex =
device.
lut[j].deviceEntry;
123 size_t subIndex =
device.
lut[j].deviceEntry;
146 size_t subIndex =
device.
lut[j].deviceEntry;
165 size_t subIndex =
device.
lut[m].deviceEntry;
184 size_t subIndex =
device.
lut[m].deviceEntry;
203 size_t subIndex =
device.
lut[m].deviceEntry;
220 size_t subIndex =
device.
lut[m].deviceEntry;
237 size_t subIndex =
device.
lut[m].deviceEntry;
240 yCTrace(
CONTROLBOARD) <<
"CBW2::getPWMlimit j" <<
static_cast<int>(off + p->
base) <<
" p " << (p ?
"1" :
"0") <<
" amp " << (p->
amp ?
"1" :
"0");
257 size_t subIndex =
device.
lut[m].deviceEntry;
260 yCTrace(
CONTROLBOARD) <<
"CBW2::getPWMlimit j" <<
static_cast<int>(off + p->
base) <<
" p " << (p ?
"1" :
"0") <<
" amp " << (p->
amp ?
"1" :
"0");
278 size_t subIndex =
device.
lut[m].deviceEntry;
295 size_t subIndex =
device.
lut[m].deviceEntry;
const yarp::os::LogComponent & CONTROLBOARD()
constexpr yarp::conf::vocab32_t VOCAB_CM_IDLE
bool getPWMLimit(int m, double *val) override
bool setMaxCurrent(int j, double v) override
bool setPeakCurrent(int m, const double val) override
bool setNominalCurrent(int m, const double val) override
bool getPowerSupplyVoltage(int m, double *val) override
bool disableAmp(int j) override
Disable the amplifier on a specific joint.
bool enableAmp(int j) override
Enable the amplifier on a specific joint.
bool getPeakCurrent(int m, double *val) override
bool getNominalCurrent(int m, 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 getPWM(int m, double *val) override
bool setPWMLimit(int m, const double val) override
void printError(const std::string &func_name, const std::string &info, bool result)
yarp::dev::IControlMode * iMode
yarp::dev::IAmplifierControl * amp
yarp::dev::IPositionControl * pos
std::vector< DevicesLutEntry > lut
SubDevice * getSubdevice(size_t i)
size_t maxNumOfJointsInDevices
SubDeviceVector subdevices
virtual bool getPWMLimit(int j, double *val)
virtual bool enableAmp(int j)=0
Enable the amplifier on a specific joint.
virtual bool setNominalCurrent(int m, const double val)
virtual bool disableAmp(int j)=0
Disable the amplifier on a specific joint.
virtual bool getPWM(int j, double *val)
virtual bool getAmpStatus(int *st)=0
virtual bool setPWMLimit(int j, const double val)
virtual bool getMaxCurrent(int j, double *v)=0
Returns the maximum electric current allowed for a given motor.
virtual bool getNominalCurrent(int m, double *val)
virtual bool getPowerSupplyVoltage(int j, double *val)
virtual bool setMaxCurrent(int j, double v)=0
virtual bool setPeakCurrent(int m, const double val)
virtual bool getPeakCurrent(int m, double *val)
virtual bool setControlMode(const int j, const int mode)=0
Set the current control mode.
#define yCError(component,...)
#define yCTrace(component,...)