Class ControllerGroup.SpeedController

java.lang.Object
frc.team_8840_lib.utils.IO.IOLayer
frc.team_8840_lib.controllers.ControllerGroup.SpeedController
Direct Known Subclasses:
ControllerGroup.CANSpeedController
Enclosing class:
ControllerGroup

public static class ControllerGroup.SpeedController extends IOLayer
  • Constructor Details

    • SpeedController

      @Deprecated public SpeedController(int port, SCType type)
      Deprecated.
      Creates a speed controller at port with type
      Parameters:
      port -
      type -
    • SpeedController

      public SpeedController(SCType type)
  • Method Details

    • invert

      public void invert()
    • setSpeed

      public void setSpeed(double speed)
    • stop

      public void stop()
    • evolve

      public ControllerGroup evolve(String name)
      Evolves the speed controller into a speed controller group. Speed Controller Groups send the info to the NetworkTables, so doing this will allow the info to send.
    • getSpeed

      public double getSpeed()
    • getController

      public edu.wpi.first.wpilibj.motorcontrol.PWMMotorController getController()
    • getType

      public SCType getType()
    • getPort

      public int getPort()
    • getInitializedName

      public String getInitializedName()
    • isInitialized

      public boolean isInitialized()
    • isPWM

      public boolean isPWM()
    • setSpeedIO

      public void setSpeedIO(double speed)