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

Interface for controlling an axis, by sending directly a PWM reference signal to a motor. More...

#include <yarp/dev/IPWMControl.h>

+ Inheritance diagram for yarp::dev::IPWMControlRaw:

Public Member Functions

virtual ~IPWMControlRaw ()
 
virtual yarp::dev::ReturnValue getNumberOfMotorsRaw (int *number)=0
 Retrieves the number of controlled motors from the current physical interface.
 
virtual yarp::dev::ReturnValue setRefDutyCycleRaw (int m, double ref)=0
 Sets the reference dutycycle of a single motor.
 
virtual yarp::dev::ReturnValue setRefDutyCyclesRaw (const double *refs)=0
 Sets the reference dutycycle for all motors.
 
virtual yarp::dev::ReturnValue getRefDutyCycleRaw (int m, double *ref)=0
 Gets the last reference sent using the setRefDutyCycleRaw function.
 
virtual yarp::dev::ReturnValue getRefDutyCyclesRaw (double *refs)=0
 Gets the last reference sent using the setRefDutyCyclesRaw function.
 
virtual yarp::dev::ReturnValue getDutyCycleRaw (int m, double *val)=0
 Gets the current dutycycle of the output of the amplifier (i.e.
 
virtual yarp::dev::ReturnValue getDutyCyclesRaw (double *vals)=0
 Gets the current dutycycle of the output of the amplifier (i.e.
 

Detailed Description

Interface for controlling an axis, by sending directly a PWM reference signal to a motor.

Definition at line 84 of file IPWMControl.h.

Constructor & Destructor Documentation

◆ ~IPWMControlRaw()

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

Definition at line 87 of file IPWMControl.h.

Member Function Documentation

◆ getDutyCycleRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPWMControlRaw::getDutyCycleRaw ( int  m,
double *  val 
)
pure virtual

Gets the current dutycycle of the output of the amplifier (i.e.

pwm value sent to the motor)

Parameters
mmotor number
valpointer to storage for return value, expressed as percentage (-100% +100%)
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getDutyCyclesRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPWMControlRaw::getDutyCyclesRaw ( double *  vals)
pure virtual

Gets the current dutycycle of the output of the amplifier (i.e.

pwm values sent to all motors)

Parameters
valspointer to the vector that will store the values, expressed as percentage (-100% +100%)
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getNumberOfMotorsRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPWMControlRaw::getNumberOfMotorsRaw ( int *  number)
pure virtual

Retrieves the number of controlled motors from the current physical interface.

Parameters
numberreturns the number of controlled motors.
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getRefDutyCycleRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPWMControlRaw::getRefDutyCycleRaw ( int  m,
double *  ref 
)
pure virtual

Gets the last reference sent using the setRefDutyCycleRaw function.

Parameters
mmotor number
refpointer to storage for return value, expressed as percentage (-100% +100%)
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getRefDutyCyclesRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPWMControlRaw::getRefDutyCyclesRaw ( double *  refs)
pure virtual

Gets the last reference sent using the setRefDutyCyclesRaw function.

Parameters
refspointer to the vector that will store the values, expressed as percentage (-100% +100%)
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setRefDutyCycleRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPWMControlRaw::setRefDutyCycleRaw ( int  m,
double  ref 
)
pure virtual

Sets the reference dutycycle of a single motor.

Parameters
mmotor number
refthe dutycycle, expressed as percentage (-100% +100%)
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setRefDutyCyclesRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPWMControlRaw::setRefDutyCyclesRaw ( const double *  refs)
pure virtual

Sets the reference dutycycle for all motors.

Parameters
refsthe dutycycle, expressed as percentage (-100% +100%)
Returns
true/false on success/failure

Implemented in FakeMotionControl.


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