Skip to content

StateL1 Command

A command sequence that automates the process of placing game pieces at Level 1 scoring positions. This command coordinates multiple subsystems to achieve precise positioning and controlled release of game pieces.

Subsystem Requirements

Constructor Parameters

public StateL1(
    ElevatorSubsystem elevatorSubsystem,
    WristSubsystem wristSubsystem,
    CoralIntakeSubsystem coralIntakeSubsystem,
    Trigger coralIntakeReleaseTrigger)
  • elevatorSubsystem: Controls vertical movement of the mechanism
  • wristSubsystem: Controls angular position of the intake
  • coralIntakeSubsystem: Controls the intake rollers
  • coralIntakeReleaseTrigger: Button trigger that initiates piece release

Configuration Requirements

  1. All subsystems must have proper setpoints defined in their respective Constants files:

    • ElevatorConstants.Setpoints.L1_PLACE
    • WristConstants.Setpoints.L1_PLACE
    • CoralIntakeConstants.Setpoints.OpenLoop.EJECT_PERCENTAGE
  2. Default commands should be configured for all subsystems since the command uses proxy commands

View Javadoc Reference