Skip to content

Commit

Permalink
Stop intake rumble in auto
Browse files Browse the repository at this point in the history
  • Loading branch information
Yumnah2 committed Feb 28, 2024
1 parent 96f9025 commit 5be5392
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public void end(boolean interrupted) {
intakeSubsystem.intakeReject();
intakeSubsystem.indexStop();
intakeSubsystem.feederStop();
controls.vibrateDriveController(1.0);

if (controls != null && interrupted == false) {
controls.vibrateDriveController(1.0);
}
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/team2412/robot/util/AutoLogic.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public void registerCommands() {
.andThen(new WaitCommand(1))
.andThen(new FeederInCommand(s.intakeSubsystem)));

NamedCommands.registerCommand("Intake", new AllInCommand(s.intakeSubsystem, controls));
NamedCommands.registerCommand("Intake", new AllInCommand(s.intakeSubsystem, null));
// Complex Autos
NamedCommands.registerCommand("AutoLogicTest", AutoPaths.testAuto);
NamedCommands.registerCommand(
Expand Down

0 comments on commit 5be5392

Please sign in to comment.