YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::dev::IAmplifierControl Class Referenceabstract

Interface for control devices, amplifier commands. More...

#include <yarp/dev/IAmplifierControl.h>

+ Inheritance diagram for yarp::dev::IAmplifierControl:

Public Member Functions

virtual ~IAmplifierControl ()
 Destructor.
 
virtual yarp::dev::ReturnValue enableAmp (int j)=0
 Enable the amplifier on a specific joint.
 
virtual yarp::dev::ReturnValue disableAmp (int j)=0
 Disable the amplifier on a specific joint.
 
virtual yarp::dev::ReturnValue getAmpStatus (int *st)=0
 
virtual yarp::dev::ReturnValue getAmpStatus (int j, int *v)=0
 
virtual yarp::dev::ReturnValue getCurrents (double *vals)=0
 
virtual yarp::dev::ReturnValue getCurrent (int j, double *val)=0
 
virtual yarp::dev::ReturnValue getMaxCurrent (int j, double *v)=0
 Returns the maximum electric current allowed for a given motor.
 
virtual yarp::dev::ReturnValue setMaxCurrent (int j, double v)=0
 
virtual yarp::dev::ReturnValue getNominalCurrent (int m, double *val)=0
 
virtual yarp::dev::ReturnValue setNominalCurrent (int m, const double val)=0
 
virtual yarp::dev::ReturnValue getPeakCurrent (int m, double *val)=0
 
virtual yarp::dev::ReturnValue setPeakCurrent (int m, const double val)=0
 
virtual yarp::dev::ReturnValue getPWM (int j, double *val)=0
 
virtual yarp::dev::ReturnValue getPWMLimit (int j, double *val)=0
 
virtual yarp::dev::ReturnValue setPWMLimit (int j, const double val)=0
 
virtual yarp::dev::ReturnValue getPowerSupplyVoltage (int j, double *val)=0
 

Detailed Description

Interface for control devices, amplifier commands.

Definition at line 25 of file IAmplifierControl.h.

Constructor & Destructor Documentation

◆ ~IAmplifierControl()

virtual yarp::dev::IAmplifierControl::~IAmplifierControl ( )
inlinevirtual

Destructor.

Definition at line 31 of file IAmplifierControl.h.

Member Function Documentation

◆ disableAmp()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::disableAmp ( int  j)
pure virtual

Disable the amplifier on a specific joint.

All computations within the board will be carried out normally, but the output will be disabled.

Returns
true/false on success/failure

Implemented in yarp::dev::xHandControlBoard, ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementAmplifierControl.

◆ enableAmp()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::enableAmp ( int  j)
pure virtual

Enable the amplifier on a specific joint.

Be careful, check that the output of the controller is appropriate (usually zero), to avoid generating abrupt movements.

Returns
true/false on success/failure

Implemented in yarp::dev::xHandControlBoard, ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementAmplifierControl.

◆ getAmpStatus() [1/2]

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::getAmpStatus ( int *  st)
pure virtual

◆ getAmpStatus() [2/2]

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::getAmpStatus ( int  j,
int *  v 
)
pure virtual

◆ getCurrent()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::getCurrent ( int  j,
double *  val 
)
pure virtual

◆ getCurrents()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::getCurrents ( double *  vals)
pure virtual

◆ getMaxCurrent()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::getMaxCurrent ( int  j,
double *  v 
)
pure virtual

Returns the maximum electric current allowed for a given motor.

Exceeding this value will trigger instantaneous hardware fault.

Parameters
jmotor number
vthe return value
Returns
probably true, might return false in bad times

Implemented in yarp::dev::xHandControlBoard, ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementAmplifierControl.

◆ getNominalCurrent()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::getNominalCurrent ( int  m,
double *  val 
)
pure virtual

◆ getPeakCurrent()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::getPeakCurrent ( int  m,
double *  val 
)
pure virtual

◆ getPowerSupplyVoltage()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::getPowerSupplyVoltage ( int  j,
double *  val 
)
pure virtual

◆ getPWM()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::getPWM ( int  j,
double *  val 
)
pure virtual

◆ getPWMLimit()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::getPWMLimit ( int  j,
double *  val 
)
pure virtual

◆ setMaxCurrent()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::setMaxCurrent ( int  j,
double  v 
)
pure virtual

◆ setNominalCurrent()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::setNominalCurrent ( int  m,
const double  val 
)
pure virtual

◆ setPeakCurrent()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::setPeakCurrent ( int  m,
const double  val 
)
pure virtual

◆ setPWMLimit()

virtual yarp::dev::ReturnValue yarp::dev::IAmplifierControl::setPWMLimit ( int  j,
const double  val 
)
pure virtual

The documentation for this class was generated from the following file: