|
template<class... SpeedControllers> |
| SpeedControllerGroup (SpeedController &speedController, SpeedControllers &...speedControllers) |
|
void | Set (double speed) override |
| Common interface for setting the speed of a speed controller. More...
|
|
double | Get () const override |
| Common interface for getting the current set speed of a speed controller. More...
|
|
void | SetInverted (bool isInverted) override |
| Common interface for inverting direction of a speed controller. More...
|
|
bool | GetInverted () const override |
| Common interface for returning the inversion state of a speed controller. More...
|
|
void | Disable () override |
| Common interface for disabling a motor.
|
|
void | StopMotor () override |
| Common interface to stop the motor until Set is called again.
|
|
void | PIDWrite (double output) override |
|
double SpeedControllerGroup::Get |
( |
| ) |
const |
|
overridevirtual |
Common interface for getting the current set speed of a speed controller.
- Returns
- The current set speed. Value is between -1.0 and 1.0.
Implements frc::SpeedController.
bool SpeedControllerGroup::GetInverted |
( |
| ) |
const |
|
overridevirtual |
Common interface for returning the inversion state of a speed controller.
- Returns
- isInverted The state of inversion, true is inverted.
Implements frc::SpeedController.
void SpeedControllerGroup::Set |
( |
double |
speed | ) |
|
|
overridevirtual |
Common interface for setting the speed of a speed controller.
- Parameters
-
speed | The speed to set. Value should be between -1.0 and 1.0. |
Implements frc::SpeedController.
void SpeedControllerGroup::SetInverted |
( |
bool |
isInverted | ) |
|
|
overridevirtual |
Common interface for inverting direction of a speed controller.
- Parameters
-
isInverted | The state of inversion, true is inverted. |
Implements frc::SpeedController.
The documentation for this class was generated from the following files:
- build/cppSource/wpilibc/headers/SpeedControllerGroup.h
- build/cppSource/wpilibc/sources/SpeedControllerGroup.cpp
- build/cppSource/wpilibc/headers/SpeedControllerGroup.inc