librmb 1.0
Rambunction 4330 Utility Library
|
#include <rmb/motorcontrol/ServoPositionController.h>
Public Member Functions | |
ServoPositionController (const ServoPositionController &)=delete | |
ServoPositionController (ServoPositionController &&)=default | |
ServoPositionController (int channel) | |
virtual void | setPosition (units::radian_t position) |
virtual units::radian_t | getTargetPosition () const |
virtual units::radian_t | getMinPosition () const |
virtual units::radian_t | getMaxPosition () const |
virtual void | setInverted (bool isInverted) |
virtual bool | getInverted () const |
virtual void | disable () |
virtual void | stop () |
Public Member Functions inherited from rmb::AngularPositionController | |
virtual void | setPower (double power)=0 |
virtual double | getPower () const =0 |
virtual units::radians_per_second_t | getVelocity () const =0 |
virtual units::radian_t | getPosition () const =0 |
virtual void | setEncoderPosition (units::radian_t position=0_rad)=0 |
virtual units::radian_t | getTolerance () const =0 |
virtual units::radian_t | getError () const |
virtual bool | atTarget () const |
Additional Inherited Members | |
Public Types inherited from rmb::AngularPositionController | |
using | ConversionUnit |
using | ConversionUnit_t = units::unit_t<ConversionUnit> |
Custom servo object the conforms to the AngularPositionController
interface.
Common interface for disabling a mechanism.
Implements rmb::AngularPositionController.
Common interface for returning the inversion state of a mechanism.
|
inlinevirtual |
Gets the maximum angular position.
Implements rmb::AngularPositionController.
|
inlinevirtual |
Gets the minimum angular position.
Implements rmb::AngularPositionController.
|
inlinevirtual |
Common interface for getting the target linear position.
Implements rmb::AngularPositionController.
Common interface for inverting direction of a mechanism.
isInverted | The state of inversion, true is inverted. |
Common interface for setting the target linear position.
position | The target linear position in meters. |
Implements rmb::AngularPositionController.
Common interface to stop the mechanism until setPosition
is called again.
Implements rmb::AngularPositionController.