Class DefaultOperatorProfile
java.lang.Object
frc.robot.services.control.GenericControlProfile
frc.robot.services.control.operator.profiles.DefaultOperatorProfile
- All Implemented Interfaces:
ControlProfile,OperatorProfile
Default implementation of the OperatorProfile for controlling the robot superstructure.
-
Field Summary
Fields inherited from class frc.robot.services.control.GenericControlProfile
controller -
Constructor Summary
ConstructorsConstructorDescriptionDefaultOperatorProfile(XboxController controller, BooleanSupplier isClimbMode) Constructs a DefaultOperatorProfile. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the right rumble value for the controller.booleanReturns true if the operator wants to deploy the arm.booleanReturns true if the operator wants to retract the arm.booleanReturns true if the operator wants to climb.booleanReturns true if the operator wants to lower the climber.booleanReturns true if the operator wants to raise the climber.booleanReturns true if the operator wants to extake.booleanReturns true if the operator wants to intake.Methods inherited from class frc.robot.services.control.GenericControlProfile
getHID, getLeftRumble, isConnectedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface frc.robot.services.control.ControlProfile
getHID, getLeftRumble, isConnected
-
Constructor Details
-
DefaultOperatorProfile
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:ControlProfileReturns the right rumble value for the controller.- Specified by:
getRightRumblein interfaceControlProfile- Overrides:
getRightRumblein classGenericControlProfile- Returns:
- The right rumble intensity (0.0-1.0).
-
wantsArmDeployment
public boolean wantsArmDeployment()Description copied from interface:OperatorProfileReturns true if the operator wants to deploy the arm.- Specified by:
wantsArmDeploymentin interfaceOperatorProfile- Returns:
- True if arm deployment is requested.
-
wantsArmRetraction
public boolean wantsArmRetraction()Description copied from interface:OperatorProfileReturns true if the operator wants to retract the arm.- Specified by:
wantsArmRetractionin interfaceOperatorProfile- Returns:
- True if arm retraction is requested.
-
wantsIntake
public boolean wantsIntake()Description copied from interface:OperatorProfileReturns true if the operator wants to intake.- Specified by:
wantsIntakein interfaceOperatorProfile- Returns:
- True if intake is requested.
-
wantsExtake
public boolean wantsExtake()Description copied from interface:OperatorProfileReturns true if the operator wants to extake.- Specified by:
wantsExtakein interfaceOperatorProfile- Returns:
- True if extake is requested.
-
wantsClimb
public boolean wantsClimb()Description copied from interface:OperatorProfileReturns true if the operator wants to climb.- Specified by:
wantsClimbin interfaceOperatorProfile- Returns:
- True if climb is requested.
-
wantsClimberUp
public boolean wantsClimberUp()Description copied from interface:OperatorProfileReturns true if the operator wants to raise the climber.- Specified by:
wantsClimberUpin interfaceOperatorProfile- Returns:
- True if climber up is requested.
-
wantsClimberDown
public boolean wantsClimberDown()Description copied from interface:OperatorProfileReturns true if the operator wants to lower the climber.- Specified by:
wantsClimberDownin interfaceOperatorProfile- Returns:
- True if climber down is requested.
-