Class StateCoralStowed
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.SequentialCommandGroup
frc.alotobots.reefscape.commands.states.coral.StateCoralStowed
- All Implemented Interfaces:
Sendable
Command for moving the robot's mechanisms to their stowed positions. Moves the wrist first, then
the elevator to their positions
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Constructor Summary
ConstructorsConstructorDescriptionStateCoralStowed
(ElevatorSubsystem elevatorSubsystem, WristSubsystem wristSubsystem) Creates a new StateCoralStowed 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
-
StateCoralStowed
Creates a new StateCoralStowed command. Runs both elevator and wrist to stowed position. Wrist moves first, then elevator. Cedes control back to the default command via usage of ProxyCommand- Parameters:
elevatorSubsystem
- The elevator subsystemwristSubsystem
- The wrist subsystem
-