Package frc.robot.commands
Class MechanismCommands
java.lang.Object
frc.robot.commands.MechanismCommands
-
Constructor Summary
ConstructorDescriptionMechanismCommands
(Arm arm, Head head, HapticController driverHapticController, HapticController operatorHapticController) -
Method Summary
Modifier and TypeMethodDescriptionAutonomousPrepareShoot
(Supplier<Double> distance) AutonomousShoot
(Drivetrain drivetrain) Will finish after the piece has been intaken.IntakeGround
(boolean stopShooter) Will finish after the piece has been intaken.IntakePiece
(boolean stopShooter, boolean ground) Will finish after piece has been intaken.Will finish after the piece has been intaken.IntakeSource
(boolean stopShooter) Will finish after the piece has been intaken.will finish when readyPrepareShoot
(Supplier<Double> distance) will finish when readyShoot()
will finish after piece has been shotShoot
(boolean stopShooter) cancel shoot and intake and stow
-
Constructor Details
-
MechanismCommands
public MechanismCommands(Arm arm, Head head, HapticController driverHapticController, HapticController operatorHapticController)
-
-
Method Details
-
IntakePiece
Will finish after piece has been intaken.- Parameters:
stopShooter
- Should the shooter be stopped before intaking a piece?ground
- Should the piece be intaken from the ground or the source?- Returns:
- Command
-
IntakeSource
Will finish after the piece has been intaken.- Parameters:
stopShooter
- Should the shooter be stopped before intaking a piece?- Returns:
- Command
-
IntakeSource
Will finish after the piece has been intaken.- Returns:
- Command
-
IntakeGround
Will finish after the piece has been intaken.- Parameters:
stopShooter
- Should the shooter be stopped before intaking a piece?- Returns:
- Command
-
IntakeGround
Will finish after the piece has been intaken.- Returns:
- Command
-
StowStopIntakeAndShooter
cancel shoot and intake and stow- Returns:
-
AutoStowAndStopIntake
-
PrepareShoot
will finish when ready- Parameters:
position
-
-
PrepareShoot
will finish when ready- Parameters:
distance
-
-
AutonomousPrepareShoot
-
Shoot
will finish after piece has been shot- Returns:
- Command
-
Shoot
-
AutonomousShoot
-
AutonomousShoot
-