Class DefaultOperatorProfile

java.lang.Object
frc.robot.services.control.GenericControlProfile
frc.robot.services.control.operator.profiles.DefaultOperatorProfile
All Implemented Interfaces:
ControlProfile, OperatorProfile

public class DefaultOperatorProfile extends GenericControlProfile implements OperatorProfile
Default implementation of the OperatorProfile for controlling the robot superstructure.
  • Constructor Details

    • DefaultOperatorProfile

      public DefaultOperatorProfile(XboxController controller, BooleanSupplier isClimbMode)
      Constructs a DefaultOperatorProfile.
      Parameters:
      controller - The Xbox controller used for input.
      isClimbMode - BooleanSupplier indicating if climb mode is active.
  • Method Details

    • getRightRumble

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

      public boolean wantsArmDeployment()
      Description copied from interface: OperatorProfile
      Returns true if the operator wants to deploy the arm.
      Specified by:
      wantsArmDeployment in interface OperatorProfile
      Returns:
      True if arm deployment is requested.
    • wantsArmRetraction

      public boolean wantsArmRetraction()
      Description copied from interface: OperatorProfile
      Returns true if the operator wants to retract the arm.
      Specified by:
      wantsArmRetraction in interface OperatorProfile
      Returns:
      True if arm retraction is requested.
    • wantsIntake

      public boolean wantsIntake()
      Description copied from interface: OperatorProfile
      Returns true if the operator wants to intake.
      Specified by:
      wantsIntake in interface OperatorProfile
      Returns:
      True if intake is requested.
    • wantsExtake

      public boolean wantsExtake()
      Description copied from interface: OperatorProfile
      Returns true if the operator wants to extake.
      Specified by:
      wantsExtake in interface OperatorProfile
      Returns:
      True if extake is requested.
    • wantsClimb

      public boolean wantsClimb()
      Description copied from interface: OperatorProfile
      Returns true if the operator wants to climb.
      Specified by:
      wantsClimb in interface OperatorProfile
      Returns:
      True if climb is requested.
    • wantsClimberUp

      public boolean wantsClimberUp()
      Description copied from interface: OperatorProfile
      Returns true if the operator wants to raise the climber.
      Specified by:
      wantsClimberUp in interface OperatorProfile
      Returns:
      True if climber up is requested.
    • wantsClimberDown

      public boolean wantsClimberDown()
      Description copied from interface: OperatorProfile
      Returns true if the operator wants to lower the climber.
      Specified by:
      wantsClimberDown in interface OperatorProfile
      Returns:
      True if climber down is requested.