Class ParallelElevatorWristRun
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.ParallelCommandGroup
frc.alotobots.reefscape.commands.groups.ParallelElevatorWristRun
- All Implemented Interfaces:
Sendable
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior
-
Constructor Summary
ConstructorsConstructorDescriptionParallelElevatorWristRun
(ElevatorSubsystem elevatorSubsystem, WristSubsystem wristSubsystem, Distance elevatorHeight, Angle wristAngle) Creates a new ParallelElevatorWristRun command group that moves both the elevator and wrist to specified positions simultaneously. -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.ParallelCommandGroup
addCommands, end, execute, getInterruptionBehavior, initialize, 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, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
ParallelElevatorWristRun
public ParallelElevatorWristRun(ElevatorSubsystem elevatorSubsystem, WristSubsystem wristSubsystem, Distance elevatorHeight, Angle wristAngle) Creates a new ParallelElevatorWristRun command group that moves both the elevator and wrist to specified positions simultaneously. Proxies the commands to cede back to default command after runtime automatically.- Parameters:
elevatorSubsystem
- The elevator subsystemwristSubsystem
- The wrist subsystemelevatorHeight
- Target height for the elevatorwristAngle
- Target angle for the wrist
-