Skip to content

Commit ee448b8

Browse files
committed
Changed the trigger for the controller vibrating and lights going off from the intake to the indexer sensor.
1 parent 841417b commit ee448b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/frc/robot/RobotContainer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ private void configureButtonBindings() {
336336
controller.start().onTrue(runOnce(() -> drive.setYaw(new Rotation2d())).ignoringDisable(true));
337337
controller.back().onTrue(runOnce(() -> drive.setPose(new Pose2d(7.0, 4.0, new Rotation2d()))));
338338

339-
new Trigger(indexer::intakedNote)
339+
new Trigger(indexer::hasNote)
340340
.onTrue(
341341
Commands.run(
342342
() -> controller.getHID().setRumble(GenericHID.RumbleType.kBothRumble, 0.5))
@@ -396,7 +396,7 @@ public void configureLightBindings() {
396396
// Commands.startEnd(() -> prettyLights.writeString("g"), resetColorToIdle)
397397
// .ignoringDisable(true));
398398

399-
new Trigger(indexer::intakedNote).onTrue(Commands.runOnce(() -> prettyLights.writeString("g")));
399+
new Trigger(indexer::hasNote).onTrue(Commands.runOnce(() -> prettyLights.writeString("g")));
400400
new Trigger(indexer::hasNote)
401401
.debounce(2.0, Debouncer.DebounceType.kFalling)
402402
.onFalse(Commands.runOnce(resetColorToIdle));

0 commit comments

Comments
 (0)