Class Operator
java.lang.Object
frc.lib.service.BaseService
frc.robot.services.control.ControlService<OperatorProfile,OperatorIO,frc.robot.services.control.operator.OperatorIOInputsAutoLogged>
frc.robot.services.control.operator.Operator
- All Implemented Interfaces:
Monitored
public class Operator
extends ControlService<OperatorProfile,OperatorIO,frc.robot.services.control.operator.OperatorIOInputsAutoLogged>
Subsystem for handling operator controls and input processing.
-
Field Summary
Fields inherited from class frc.robot.services.control.ControlService
chooser, inputs, ioFields inherited from class frc.lib.service.BaseService
name -
Constructor Summary
ConstructorsConstructorDescriptionOperator(OperatorIO io, org.littletonrobotics.junction.networktables.LoggedDashboardChooser<OperatorProfile> chooser) Constructs the Operator subsystem. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidupdateInputs(OperatorIO io, frc.robot.services.control.operator.OperatorIOInputsAutoLogged inputs, OperatorProfile profile) Subclasses must map the profile methods to the inputs object.Returns a trigger that is active when the operator wants to deploy the arm.Returns a trigger that is active when the operator wants to retract the arm.Returns a trigger that is active when the operator wants to climb.Returns a trigger that is active when the operator wants to lower the climber.Returns a trigger that is active when the operator wants to raise the climber.Returns a trigger that is active when the operator wants to extake.Returns a trigger that is active when the operator wants to intake.Methods inherited from class frc.robot.services.control.ControlService
clearFaults, isHealthy, updateMethods inherited from class frc.lib.service.BaseService
getName
-
Constructor Details
-
Operator
public Operator(OperatorIO io, org.littletonrobotics.junction.networktables.LoggedDashboardChooser<OperatorProfile> chooser) Constructs the Operator subsystem.- Parameters:
io- The OperatorIO implementation.chooser- The dashboard chooser for operator profiles.
-
-
Method Details
-
updateInputs
protected void updateInputs(OperatorIO io, frc.robot.services.control.operator.OperatorIOInputsAutoLogged inputs, OperatorProfile profile) Description copied from class:ControlServiceSubclasses must map the profile methods to the inputs object.- Specified by:
updateInputsin classControlService<OperatorProfile,OperatorIO, frc.robot.services.control.operator.OperatorIOInputsAutoLogged> - Parameters:
io- The IO interface for hardware interaction.inputs- The inputs object for logging and state.profile- The control profile.
-
wantsArmDeployment
Returns a trigger that is active when the operator wants to deploy the arm.- Returns:
- The arm deployment trigger.
-
wantsArmRetraction
Returns a trigger that is active when the operator wants to retract the arm.- Returns:
- The arm retraction trigger.
-
wantsIntake
Returns a trigger that is active when the operator wants to intake.- Returns:
- The intake trigger.
-
wantsExtake
Returns a trigger that is active when the operator wants to extake.- Returns:
- The extake trigger.
-
wantsClimb
Returns a trigger that is active when the operator wants to climb.- Returns:
- The climb trigger.
-
wantsClimberUp
Returns a trigger that is active when the operator wants to raise the climber.- Returns:
- The climber up trigger.
-
wantsClimberDown
Returns a trigger that is active when the operator wants to lower the climber.- Returns:
- The climber down trigger.
-