WPILibC++  unspecified
frc::SpeedControllerGroup Class Reference
Inheritance diagram for frc::SpeedControllerGroup:
Collaboration diagram for frc::SpeedControllerGroup:

Public Member Functions

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
 

Member Function Documentation

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
speedThe 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
isInvertedThe state of inversion, true is inverted.

Implements frc::SpeedController.


The documentation for this class was generated from the following files: