|
librmb 1.0
Rambunction 4330 Utility Library
|
#include <rmb/motorcontrol/feedforward/LinearFeedforwardController.h>
Public Member Functions | |
| LinearFeedforwardController (const LinearFeedforwardController &)=delete | |
| LinearFeedforwardController (LinearFeedforwardController &&)=default | |
| LinearFeedforwardController (std::unique_ptr< frc::MotorController > &&motorController, std::unique_ptr< rmb::Feedforward< units::meters > > &&feedforward) | |
| void | setVelocity (units::meters_per_second_t velocity) |
| units::meters_per_second_t | getTargetVelocity () const |
| void | setMaxVelocity (units::meters_per_second_t max) |
| units::meters_per_second_t | getMaxVelocity () const |
| void | setInverted (bool isInverted) |
| bool | getInverted () const |
| void | disable () |
| void | stop () |
Public Member Functions inherited from rmb::LinearVelocityController | |
| virtual void | setPower (double power)=0 |
| virtual double | getPower () const =0 |
| virtual units::meters_per_second_t | getVelocity () const =0 |
| virtual units::meter_t | getPosition () const =0 |
| virtual void | setEncoderPosition (units::meter_t position=0_m)=0 |
| virtual units::meters_per_second_t | getTolerance () const =0 |
| virtual units::meters_per_second_t | getError () const |
| virtual bool | atTarget () const |
Additional Inherited Members | |
Public Types inherited from rmb::LinearVelocityController | |
| using | ConversionUnit |
| using | ConversionUnit_t = units::unit_t<ConversionUnit> |
Interface for setting a motor controllers linear 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::LinearVelocityController.
|
inline |
Returns the inversion state of a mechanism.
|
inline |
Gets the maximum angular velocity.
|
inlinevirtual |
Gets the target velocity.
Implements rmb::LinearVelocityController.
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::LinearVelocityController.
|
inlinevirtual |
Stops the mechanism until setVelocity is called again.
Implements rmb::LinearVelocityController.