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.
  • 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: ControlService
      Subclasses must map the profile methods to the inputs object.
      Specified by:
      updateInputs in class ControlService<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

      public Trigger wantsArmDeployment()
      Returns a trigger that is active when the operator wants to deploy the arm.
      Returns:
      The arm deployment trigger.
    • wantsArmRetraction

      public Trigger wantsArmRetraction()
      Returns a trigger that is active when the operator wants to retract the arm.
      Returns:
      The arm retraction trigger.
    • wantsIntake

      public Trigger wantsIntake()
      Returns a trigger that is active when the operator wants to intake.
      Returns:
      The intake trigger.
    • wantsExtake

      public Trigger wantsExtake()
      Returns a trigger that is active when the operator wants to extake.
      Returns:
      The extake trigger.
    • wantsClimb

      public Trigger wantsClimb()
      Returns a trigger that is active when the operator wants to climb.
      Returns:
      The climb trigger.
    • wantsClimberUp

      public Trigger wantsClimberUp()
      Returns a trigger that is active when the operator wants to raise the climber.
      Returns:
      The climber up trigger.
    • wantsClimberDown

      public Trigger wantsClimberDown()
      Returns a trigger that is active when the operator wants to lower the climber.
      Returns:
      The climber down trigger.