Skip to content

Commit

Permalink
brought back new auto-intake binding
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalApple committed Apr 6, 2024
1 parent 00757b9 commit d07bafa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,12 @@ private void configureBindings() {
// ).andThen(new InstantCommand(() -> lightBarSubsystem.setLightBarStatus(LightBarStatus.DORMANT, 1)))
// );



/* Note align -- deprecated, new version in the works*/
/* Note align -- Auto-intakes the nearest visible note, leaving left power control to the driver. */
driveController.getNoteAlign().onTrue(
new NoteAlignCommand(swerveSubsystem, noteDetector, driveController)
.unless(() -> noteDetector.getNote().isEmpty())
new AutoIntakeSequence(intakeRollerSubsystem, intakePivotSubsystem,
swerveSubsystem, noteDetector,
driveController, lightBarSubsystem)
.onlyWhile(driveController.getNoteAlign())
);

/* Swerve Stop -- Pressing the button completely stops the robot's motion. */
Expand Down

0 comments on commit d07bafa

Please sign in to comment.