WPILibC++
2019.2.1-4-g05d6660
|
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... | |
![]() | |
SendableBase (bool addLiveWindow=true) | |
Creates an instance of the sensor base. More... | |
SendableBase (SendableBase &&rhs) | |
SendableBase & | operator= (SendableBase &&rhs) |
std::string | GetName () const final |
Gets the name of this Sendable object. More... | |
void | SetName (const wpi::Twine &name) final |
Sets the name of this Sendable object. More... | |
std::string | GetSubsystem () const final |
Gets the subsystem name of this Sendable object. More... | |
void | SetSubsystem (const wpi::Twine &subsystem) final |
Sets the subsystem name of this Sendable object. More... | |
![]() | |
Sendable (Sendable &&)=default | |
Sendable & | operator= (Sendable &&)=default |
void | SetName (const wpi::Twine &subsystem, const wpi::Twine &name) |
Sets both the subsystem name and device name of this Sendable object. More... | |
Additional Inherited Members | |
![]() | |
void | AddChild (std::shared_ptr< Sendable > child) |
Add a child component. More... | |
void | AddChild (void *child) |
Add a child component. More... | |
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... | |
|
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.