From: Ethan Mortensen Date: Wed, 18 Feb 2026 19:38:19 +0000 (-0800) Subject: Update LEDDefaultCommand.java X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=0de96c302b8cd65d08c5cb963d5aa38058fbb6f7;p=FRC2026.git Update LEDDefaultCommand.java --- diff --git a/src/main/java/frc/robot/commands/led_comm/LEDDefaultCommand.java b/src/main/java/frc/robot/commands/led_comm/LEDDefaultCommand.java index 4475a80..21d2840 100644 --- a/src/main/java/frc/robot/commands/led_comm/LEDDefaultCommand.java +++ b/src/main/java/frc/robot/commands/led_comm/LEDDefaultCommand.java @@ -1,6 +1,7 @@ package frc.robot.commands.led_comm; import edu.wpi.first.wpilibj.DriverStation; +import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj2.command.Command; import frc.robot.subsystems.LED.LED; import frc.robot.subsystems.drivetrain.Drivetrain; @@ -27,22 +28,19 @@ public class LEDDefaultCommand extends Command { @Override public void execute() { - if (climbAligned()) { - // When aligned to climb - led.setTwoColorWave(255, 0, 100, 100, 0, 255); - } else if (vision.oneCameraDisconnected()) { + if (vision.oneCameraDisconnected()) { // flash if camera disconnected - led.setStrobeLights(255, 0, 0); + led.setStrobeLights(255, 100, 0); } else if (playingDefense()) { // When playing defense led.defenseLights(); - } - - // else if (outtake.coralLoaded()){ - // //When coral detected - // led.setLEDs(0, 255, 0); - // } - else if (allianceIsRed) { + } else if (DriverStation.isAutonomous() && allianceIsRed){ + // Dimmer light for auto in red alliance + led.setLEDs(100, 0, 0); + } else if (DriverStation.isAutonomous()){ + // Dimmer light for auto in blue alliance + led.setLEDs(0, 0, 100); + } else if (allianceIsRed) { // Red alliance led.setTwoColorWave(255, 0, 0, 255, 255, 255); } else {