From 9ea81939355593f132f81feb13645c170a97805e Mon Sep 17 00:00:00 2001 From: Michael Mikovsky <77305074+Astatin3@users.noreply.github.com> Date: Wed, 11 Feb 2026 16:39:09 -0700 Subject: [PATCH] Auto fix LED strip --- src/main/java/frc4388/robot/RobotContainer.java | 3 ++- src/main/java/frc4388/robot/subsystems/LED.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc4388/robot/RobotContainer.java b/src/main/java/frc4388/robot/RobotContainer.java index e422e4f..c06e760 100644 --- a/src/main/java/frc4388/robot/RobotContainer.java +++ b/src/main/java/frc4388/robot/RobotContainer.java @@ -9,6 +9,7 @@ package frc4388.robot; import java.io.File; +import com.ctre.phoenix.CANifier.LEDChannel; import com.pathplanner.lib.commands.PathPlannerAuto; import edu.wpi.first.math.geometry.Rotation2d; @@ -61,7 +62,7 @@ public class RobotContainer { public final RobotMap m_robotMap = new RobotMap(Mode.REAL); /* Subsystems */ - public final LED m_robotLED = new LED(); + public final LED m_robotLED = new LED(Constants.LEDConstants.LED_SPARK_ID); //Testing of Colors public final Vision m_vision = new Vision(); public final SwerveDrive m_robotSwerveDrive = new SwerveDrive(m_robotMap.swerveDrivetrain, m_vision); diff --git a/src/main/java/frc4388/robot/subsystems/LED.java b/src/main/java/frc4388/robot/subsystems/LED.java index 6bb0ee9..f910d38 100644 --- a/src/main/java/frc4388/robot/subsystems/LED.java +++ b/src/main/java/frc4388/robot/subsystems/LED.java @@ -42,6 +42,7 @@ public class LED extends SubsystemBase implements Queryable { public void setMode(LEDPatterns pattern){ this.mode = pattern; + setTo5V(); } public String getMode(){