Skip to content

Commit

Permalink
added stop shooter spinning
Browse files Browse the repository at this point in the history
  • Loading branch information
PGgit08 committed Mar 30, 2024
1 parent dc905ab commit 290c6d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public RobotContainer() {
// revs and intakes if necessary while aiming, then shoots
NamedCommands.registerCommand("shoot", new AutonShoot(_shooterSubsystem, _elevatorSubsystem, _ledSubsystem, _swerveSubsystem, _intakeSubsystem));

// stops the shooter
NamedCommands.registerCommand("stopShooter", new SpinShooter(_shooterSubsystem, ShooterState.NONE, false));

// Drive/Operate default commands
_swerveSubsystem.setDefaultCommand(new TeleopDrive(_swerveSubsystem,
() -> MathUtil.applyDeadband(-_driveFilterLeftY.calculate(_driveController.getLeftY()), 0.05),
Expand Down

0 comments on commit 290c6d3

Please sign in to comment.