Class StateCoralL2
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.SequentialCommandGroup
frc.alotobots.reefscape.commands.states.coral.StateCoralL2
- All Implemented Interfaces:
Sendable
Command sequence for placing game pieces on Level 2. The sequence: 1. Moves elevator and wrist to
L2 position simultaneously 2. Waits for release button confirmation 3. Runs eject through 4.
Returns to stowed position
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Constructor Summary
ConstructorsConstructorDescriptionStateCoralL2
(ElevatorSubsystem elevatorSubsystem, WristSubsystem wristSubsystem, CoralIntakeSubsystem coralIntakeSubsystem, BlingSubsystem blingSubsystem, Trigger coralIntakeReleaseTrigger) Creates a new StateL2 command. -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.SequentialCommandGroup
addCommands, end, execute, getInterruptionBehavior, initialize, initSendable, isFinished, runsWhenDisabled
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, finallyDo, finallyDo, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
StateCoralL2
public StateCoralL2(ElevatorSubsystem elevatorSubsystem, WristSubsystem wristSubsystem, CoralIntakeSubsystem coralIntakeSubsystem, BlingSubsystem blingSubsystem, Trigger coralIntakeReleaseTrigger) Creates a new StateL2 command.- Parameters:
elevatorSubsystem
- The elevator subsystemwristSubsystem
- The wrist subsystemcoralIntakeSubsystem
- The coral intake subsystemblingSubsystem
- The bling subsystemcoralIntakeReleaseTrigger
- The release button trigger
-