|
WPILibC++
2020.3.2
|
Public Member Functions | |
| template<class... SpeedControllers> | |
| SpeedControllerGroup (SpeedController &speedController, SpeedControllers &... speedControllers) | |
| SpeedControllerGroup (SpeedControllerGroup &&)=default | |
| SpeedControllerGroup & | operator= (SpeedControllerGroup &&)=default |
| 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 |
| void | InitSendable (SendableBuilder &builder) override |
| Initializes this Sendable object. More... | |
Public Member Functions inherited from frc::SpeedController | |
| virtual void | SetVoltage (units::volt_t output) |
| Sets the voltage output of the SpeedController. More... | |
Public Member Functions inherited from frc::SendableHelper< SpeedControllerGroup > | |
| SendableHelper (const SendableHelper &rhs)=default | |
| SendableHelper (SendableHelper &&rhs) | |
| SendableHelper & | operator= (const SendableHelper &rhs)=default |
| SendableHelper & | operator= (SendableHelper &&rhs) |
| std::string | GetName () const |
| Gets the name of this Sendable object. More... | |
| void | SetName (const wpi::Twine &name) |
| Sets the name of this Sendable object. More... | |
| void | SetName (const wpi::Twine &subsystem, const wpi::Twine &name) |
| Sets both the subsystem name and device name of this Sendable object. More... | |
| std::string | GetSubsystem () const |
| Gets the subsystem name of this Sendable object. More... | |
| void | SetSubsystem (const wpi::Twine &subsystem) |
| Sets the subsystem name of this Sendable object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from frc::SendableHelper< SpeedControllerGroup > | |
| void | SetName (const wpi::Twine &moduleType, int channel) |
| Sets the name of the sensor with a channel number. More... | |
| void | SetName (const wpi::Twine &moduleType, int moduleNumber, int channel) |
| Sets the name of the sensor with a module and channel number. More... | |
| void | AddChild (std::shared_ptr< Sendable > child) |
| Add a child component. More... | |
| void | AddChild (void *child) |
| Add a child component. More... | |
|
overridevirtual |
Common interface for getting the current set speed of a speed controller.
Implements frc::SpeedController.
|
overridevirtual |
Common interface for returning the inversion state of a speed controller.
Implements frc::SpeedController.
|
overridevirtual |
|
overridevirtual |
Common interface for setting the speed of a speed controller.
| speed | The speed to set. Value should be between -1.0 and 1.0. |
Implements frc::SpeedController.
|
overridevirtual |
Common interface for inverting direction of a speed controller.
| isInverted | The state of inversion, true is inverted. |
Implements frc::SpeedController.