|
SubZero Common
Common library components for an FRC CommandRobot
|
Encapsulates a pair of motors that should be treated as a single unit. More...
#include <PidMotorControllerPair.h>
Collaboration diagram for subzero::PidMotorControllerPair< TMotor, TController, TRelativeEncoder, TAbsoluteEncoder >:Public Member Functions | |
| PidMotorControllerPair (std::string prefix, PidMotorController< TMotor, TController, TRelativeEncoder, TAbsoluteEncoder > &first, PidMotorController< TMotor, TController, TRelativeEncoder, TAbsoluteEncoder > &second) | |
| Construct a new Pi MotorControllerPair. | |
| void | RunWithVelocity (units::revolutions_per_minute_t rpmFirst, units::revolutions_per_minute_t rpmSecond) |
| Run motors at the given RPM. | |
| void | RunWithVelocity (double percentageFirst, double percentageSecond) |
| Run motors at the given percentage of max RPM. | |
| void | Stop () |
| Stop both motors. | |
| const PidSettings & | GetPidSettings () const |
| void | UpdatePidSettings (PidSettings settings) |
Public Attributes | |
| const std::string | m_shuffleboardPrefix |
Encapsulates a pair of motors that should be treated as a single unit.
| TMotor | |
| TController | |
| TRelativeEncoder | |
| TAbsoluteEncoder |
Definition at line 25 of file PidMotorControllerPair.h.
|
inlineexplicit |
Construct a new Pi MotorControllerPair.
| prefix | Common identifier prefix in SmartDashboard |
| first | |
| second |
Definition at line 34 of file PidMotorControllerPair.h.
|
inline |
Definition at line 75 of file PidMotorControllerPair.h.
|
inline |
Run motors at the given percentage of max RPM.
| percentageFirst | Percentage of the first motor |
| percentageSecond | Percentage of the second motor |
Definition at line 61 of file PidMotorControllerPair.h.
|
inline |
Run motors at the given RPM.
| rpmFirst | RPM of the first motor |
| rpmSecond | RPM of the second motor |
Definition at line 49 of file PidMotorControllerPair.h.
|
inline |
Stop both motors.
Definition at line 70 of file PidMotorControllerPair.h.
|
inline |
Definition at line 77 of file PidMotorControllerPair.h.
| const std::string subzero::PidMotorControllerPair< TMotor, TController, TRelativeEncoder, TAbsoluteEncoder >::m_shuffleboardPrefix |
Definition at line 84 of file PidMotorControllerPair.h.