Skip to content

Commit

Permalink
Change colors when button pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
AceiusRedshift committed Mar 1, 2024
1 parent 407c9ea commit 7af525b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ public RobotContainer() {
autoChooser.addOption("Rotate by 90", Autos.rotateTestAuto(drivetrain, 90, false));
autoChooser.addOption("Forward", Autos.driveAuto(drivetrain, +1));
autoChooser.addOption("Backward", Autos.driveAuto(drivetrain, -1));
autoChooser.addOption("Make LEDs blue", new SetLightstripColor(lightStrip, 0.87));
autoChooser.addOption("Make LEDs red", new SetLightstripColor(lightStrip, 0.61));
SmartDashboard.putData("Auto Chooser", autoChooser);

SmartDashboard.putString("Bot Name", Constants.currentBot.toString() + " - " + Constants.serialNumber);
Expand Down Expand Up @@ -190,6 +188,9 @@ public void setUpOperatorController() {
joystick.button(4).onTrue(armToIntake);
joystick.button(5).onTrue(armToAmp);
joystick.button(6).onTrue(armToSpeaker);

joystick.button(7).onTrue(new SetLightstripColor(lightStrip, LightConstants.LED_COLOR_BLUE));
joystick.button(8).onTrue(new SetLightstripColor(lightStrip, LightConstants.LED_COLOR_RED));
} else {
final CommandXboxController xbox = new CommandXboxController(genericHID.getPort());

Expand Down

0 comments on commit 7af525b

Please sign in to comment.