diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 196c9425..e7d91785 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -239,7 +239,7 @@ private void climberInst() { climber = new Climber(); } private void indexInit() { - indexer = new IndexerSubsystem(intakeExists ? intake::isNoteIn : () -> false); + indexer = new IndexerSubsystem(intakeExists ? intake::isNoteSeen : () -> false); } private void indexCommandInst() { defaulNoteHandlingCommand = new IndexCommand(indexer, ShootIfReadySup, AimWhileMovingSup, shooter, intake, driveTrain, angleShooterSubsystem, HumanPlaySup, StageAngleSup, SubwooferAngleSup, GroundIntakeSup, FarStageAngleSup, OperatorPreRevSup, intakeReverse); @@ -540,4 +540,4 @@ public void disabledInit() { new InstantCommand(angleShooterSubsystem::stop, angleShooterSubsystem); } } -} \ No newline at end of file +}