librmb 1.0
Rambunction 4330 Utility Library
|
#include <rmb/motorcontrol/feedforward/AngularFeedforwardController.h>
Public Member Functions | |
AngularFeedforwardontroller (const AngularFeedforwardontroller &)=delete | |
AngularFeedforwardontroller (AngularFeedforwardontroller &&)=default | |
AngularFeedforwardontroller (std::unique_ptr< frc::MotorController > &&motorController, std::unique_ptr< rmb::Feedforward< units::radians > > &&feedforward) | |
void | setVelocity (units::radians_per_second_t velocity) |
units::radians_per_second_t | getTargetVelocity () const |
void | setMaxVelocity (units::radians_per_second_t max) |
units::radians_per_second_t | getMaxVelocity () const |
void | setInverted (bool isInverted) |
bool | getInverted () const |
void | disable () |
void | stop () |
Public Member Functions inherited from rmb::AngularVelocityController | |
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::radians_per_second_t | getTolerance () const =0 |
virtual units::radians_per_second_t | getError () const |
virtual bool | atTarget () const |
Additional Inherited Members | |
Public Types inherited from rmb::AngularVelocityController | |
using | ConversionUnit |
using | ConversionUnit_t = units::unit_t<ConversionUnit> |
Interface for setting a motor controllers angular velocity using a feedfoward. Beware< > that since there is no feedbakc device several functions will behave incorrectly. Additionaly, an update
method may need to be added for proper voltage compenstation.
|
inlinevirtual |
Disabls a mechanism.
Implements rmb::AngularVelocityController.
|
inline |
Returns the inversion state of a mechanism.
|
inline |
Gets the maximum angular velocity.
|
inlinevirtual |
Gets the target velocity.
Implements rmb::AngularVelocityController.
|
inline |
Inverterts the direction of a mechanism.
isInverted | The state of inversion, true is inverted. |
|
inline |
Sets the maximum angular velocity.
max | The maximum angular velocity in radians per second. |
|
inlinevirtual |
Sets the target velocity.
velocity | The target linear velocity in meters per second. |
Implements rmb::AngularVelocityController.
|
inlinevirtual |
Stops the mechanism until setVelocity
is called again.
Implements rmb::AngularVelocityController.