Class GenericControlProfile

java.lang.Object
frc.robot.services.control.GenericControlProfile
All Implemented Interfaces:
ControlProfile
Direct Known Subclasses:
DefaultDriverProfile, DefaultOperatorProfile, SetpointDriverProfile

public abstract class GenericControlProfile extends Object implements ControlProfile
Abstract base class for control profiles using a CommandXboxController.
  • Field Details

    • controller

      protected final XboxController controller
      The Xbox controller used for input.
  • Constructor Details

    • GenericControlProfile

      public GenericControlProfile(XboxController controller)
      Constructs a GenericControlProfile.
      Parameters:
      controller - The Xbox controller used for input.
  • Method Details

    • getHID

      public GenericHID getHID()
      Description copied from interface: ControlProfile
      Returns the physical HID device.
      Specified by:
      getHID in interface ControlProfile
      Returns:
      The GenericHID device.
    • getLeftRumble

      public double getLeftRumble()
      Description copied from interface: ControlProfile
      Returns the left rumble value for the controller.
      Specified by:
      getLeftRumble in interface ControlProfile
      Returns:
      The left rumble intensity (0.0-1.0).
    • getRightRumble

      public double getRightRumble()
      Description copied from interface: ControlProfile
      Returns the right rumble value for the controller.
      Specified by:
      getRightRumble in interface ControlProfile
      Returns:
      The right rumble intensity (0.0-1.0).
    • isConnected

      public boolean isConnected()
      Description copied from interface: ControlProfile
      Returns whether or not the controller is connected.
      Specified by:
      isConnected in interface ControlProfile
      Returns:
      True if the controller is connected, false otherwise.