Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
More...
#include <yarp/dev/IPWMControl.h>
Interface for controlling an axis, by sending directly a PWM reference signal to a motor.
Definition at line 84 of file IPWMControl.h.
◆ ~IPWMControlRaw()
| virtual yarp::dev::IPWMControlRaw::~IPWMControlRaw |
( |
| ) |
|
|
inlinevirtual |
◆ getDutyCycleRaw()
Gets the current dutycycle of the output of the amplifier (i.e.
pwm value sent to the motor)
- Parameters
-
| m | motor number |
| val | pointer to storage for return value, expressed as percentage (-100% +100%) |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ getDutyCyclesRaw()
Gets the current dutycycle of the output of the amplifier (i.e.
pwm values sent to all motors)
- Parameters
-
| vals | pointer to the vector that will store the values, expressed as percentage (-100% +100%) |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ getNumberOfMotorsRaw()
Retrieves the number of controlled motors from the current physical interface.
- Parameters
-
| number | returns the number of controlled motors. |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ getRefDutyCycleRaw()
Gets the last reference sent using the setRefDutyCycleRaw function.
- Parameters
-
| m | motor number |
| ref | pointer to storage for return value, expressed as percentage (-100% +100%) |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ getRefDutyCyclesRaw()
Gets the last reference sent using the setRefDutyCyclesRaw function.
- Parameters
-
| refs | pointer to the vector that will store the values, expressed as percentage (-100% +100%) |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ setRefDutyCycleRaw()
Sets the reference dutycycle of a single motor.
- Parameters
-
| m | motor number |
| ref | the dutycycle, expressed as percentage (-100% +100%) |
- Returns
- true/false on success/failure
Implemented in FakeMotionControl.
◆ setRefDutyCyclesRaw()
Sets the reference dutycycle for all motors.
- Parameters
-
| refs | the 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: