Class SpeedControllerGroup

java.lang.Object
edu.wpi.first.wpilibj.SpeedControllerGroup
All Implemented Interfaces:
Sendable, MotorController, SpeedController, AutoCloseable

@Deprecated(since="2022",
            forRemoval=true)
public class SpeedControllerGroup
extends Object
implements MotorController, Sendable, AutoCloseable
Deprecated, for removal: This API element is subject to removal in a future version.
Allows multiple SpeedController objects to be linked together.
  • Constructor Summary

    Constructors 
    Constructor Description
    SpeedControllerGroup​(SpeedController[] speedControllers)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    SpeedControllerGroup​(SpeedController speedController, SpeedController... speedControllers)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create a new SpeedControllerGroup with the provided SpeedControllers.
  • Method Summary

    Modifier and Type Method Description
    void close()
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void disable()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Disable the motor controller.
    double get()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Common interface for getting the current set speed of a motor controller.
    boolean getInverted()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Common interface for returning if a motor controller is in the inverted state or not.
    void initSendable​(SendableBuilder builder)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Initializes this Sendable object.
    void set​(double speed)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Common interface for setting the speed of a motor controller.
    void setInverted​(boolean isInverted)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Common interface for inverting direction of a motor controller.
    void stopMotor()
    Deprecated, for removal: This API element is subject to removal in a future version.
    Stops motor movement.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface edu.wpi.first.wpilibj.motorcontrol.MotorController

    setVoltage
  • Constructor Details

  • Method Details

    • close

      public void close()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      close in interface AutoCloseable
    • set

      public void set​(double speed)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MotorController
      Common interface for setting the speed of a motor controller.
      Specified by:
      set in interface MotorController
      Specified by:
      set in interface SpeedController
      Parameters:
      speed - The speed to set. Value should be between -1.0 and 1.0.
    • get

      public double get()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MotorController
      Common interface for getting the current set speed of a motor controller.
      Specified by:
      get in interface MotorController
      Specified by:
      get in interface SpeedController
      Returns:
      The current set speed. Value is between -1.0 and 1.0.
    • setInverted

      public void setInverted​(boolean isInverted)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MotorController
      Common interface for inverting direction of a motor controller.
      Specified by:
      setInverted in interface MotorController
      Specified by:
      setInverted in interface SpeedController
      Parameters:
      isInverted - The state of inversion true is inverted.
    • getInverted

      public boolean getInverted()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MotorController
      Common interface for returning if a motor controller is in the inverted state or not.
      Specified by:
      getInverted in interface MotorController
      Specified by:
      getInverted in interface SpeedController
      Returns:
      isInverted The state of the inversion true is inverted.
    • disable

      public void disable()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MotorController
      Disable the motor controller.
      Specified by:
      disable in interface MotorController
      Specified by:
      disable in interface SpeedController
    • stopMotor

      public void stopMotor()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: MotorController
      Stops motor movement. Motor can be moved again by calling set without having to re-enable the motor.
      Specified by:
      stopMotor in interface MotorController
      Specified by:
      stopMotor in interface SpeedController
    • initSendable

      public void initSendable​(SendableBuilder builder)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Sendable
      Initializes this Sendable object.
      Specified by:
      initSendable in interface Sendable
      Parameters:
      builder - sendable builder