librmb 1.0
Rambunction 4330 Utility Library
|
#include <rmb/motorcontrol/AngularVelocityController.h>
Public Types | |
using | ConversionUnit |
using | ConversionUnit_t = units::unit_t<ConversionUnit> |
Public Member Functions | |
virtual void | setVelocity (units::radians_per_second_t velocity)=0 |
virtual units::radians_per_second_t | getTargetVelocity () const =0 |
virtual void | setPower (double power)=0 |
virtual double | getPower () const =0 |
virtual void | disable ()=0 |
virtual void | stop ()=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::radians_per_second_t | getTolerance () const =0 |
virtual units::radians_per_second_t | getError () const |
virtual bool | atTarget () const |
Interface for controlling a mechanism's angular velocity used by wrappers of device specific APIs.
using rmb::AngularVelocityController::ConversionUnit |
|
inlinevirtual |
Common interface for getting whether the mechanism has achived it's target velocity.
|
pure virtual |
Common interface for disabling a mechanism.
Implemented in rmb::AngularFeedforwardontroller, rmb::SparkMaxVelocityController, and rmb::TalonFXVelocityController.
|
inlinevirtual |
Common interface for getting the error between the velocities controllers target velocity and the actual velocity measured by the encoder.
|
pure virtual |
Common interface for returning the angular position of an encoder.
Implemented in rmb::SparkMaxVelocityController, and rmb::TalonFXVelocityController.
|
pure virtual |
Retrieve the percentage [-1.0, 1.0] output of the motor
Implemented in rmb::SparkMaxVelocityController, and rmb::TalonFXVelocityController.
|
pure virtual |
Common interface for getting the target angular velocity.
Implemented in rmb::AngularFeedforwardontroller, rmb::SparkMaxVelocityController, and rmb::TalonFXVelocityController.
|
pure virtual |
Common interface for getting a controllers tolerance
Implemented in rmb::SparkMaxVelocityController, and rmb::TalonFXVelocityController.
|
pure virtual |
Common interface for returning the angular velocity of an encoder.
Implemented in rmb::SparkMaxVelocityController, and rmb::TalonFXVelocityController.
|
pure virtual |
Common interface for setting the position the encoder reports
position | the position the encoder should report |
Implemented in rmb::SparkMaxVelocityController, and rmb::TalonFXVelocityController.
|
pure virtual |
Common interface for setting a mechanism's raw power output.
Implemented in rmb::SparkMaxVelocityController, and rmb::TalonFXVelocityController.
|
pure virtual |
Common interface for setting the target angular velocity.
velocity | The target angular velocity in radians per second. |
Implemented in rmb::AngularFeedforwardontroller, rmb::SparkMaxVelocityController, and rmb::TalonFXVelocityController.
|
pure virtual |
Common interface to stop the mechanism until setPosition
is called again.
Implemented in rmb::AngularFeedforwardontroller, rmb::SparkMaxVelocityController, and rmb::TalonFXVelocityController.