Class ElevatorWristRunAuto
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.SequentialCommandGroup
frc.alotobots.reefscape.commands.groups.ElevatorWristRunAuto
- All Implemented Interfaces:
Sendable
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Constructor Summary
ConstructorsConstructorDescriptionElevatorWristRunAuto
(ElevatorSubsystem elevatorSubsystem, WristSubsystem wristSubsystem, Distance elevatorHeight, Angle wristAngle) Creates a new ElevatorWristRun command group that moves both the elevator and wrist to specified positions one after the other. -
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
-
ElevatorWristRunAuto
public ElevatorWristRunAuto(ElevatorSubsystem elevatorSubsystem, WristSubsystem wristSubsystem, Distance elevatorHeight, Angle wristAngle) Creates a new ElevatorWristRun command group that moves both the elevator and wrist to specified positions one after the other. Runs the wrist first, then the elevator. Proxies the commands to cede back to default command after runtime automatically.- Parameters:
elevatorSubsystem
- The elevator subsystemelevatorHeight
- Target height for the elevatorwristSubsystem
- The wrist subsystemwristAngle
- Target angle for the wrist
-