]> git.taranathan.com Git - FRC2026.git/commitdiff
ibugv
authorEthan Mortensen <ethanmortensen20@gmail.com>
Tue, 24 Feb 2026 22:49:41 +0000 (14:49 -0800)
committerEthan Mortensen <ethanmortensen20@gmail.com>
Tue, 24 Feb 2026 22:49:41 +0000 (14:49 -0800)
src/main/java/frc/robot/commands/led_comm/LEDDefaultCommand.java
src/main/java/frc/robot/controls/PS5ControllerDriverConfig.java

index 82acb3ab8610a965256379a6654591e3d9140d89..e67f84f6e347f924198cf0e873467b63755817de 100644 (file)
@@ -38,13 +38,13 @@ public class LEDDefaultCommand extends Command {
         if (fiveSecondsBeforeChange() && allianceIsRed) {
             // blink alliance color and rumble if red alliance 5 seconds before hub shifts
             led.setStrobeLights(255, 0, 0);
-            // controller.setRumble(GenericHID.RumbleType.kBothRumble, 1.0);
+            controller.setRumble(GenericHID.RumbleType.kBothRumble, 1.0);
         } else if (fiveSecondsBeforeChange()) {
             // blink alliance color and rumble if blue alliance 5 seconds before hub shifts
             led.setStrobeLights(0, 0, 255);
-            // controller.setRumble(GenericHID.RumbleType.kBothRumble, 1.0);
+            controller.setRumble(GenericHID.RumbleType.kBothRumble, 1.0);
         } else 
-        if (playingDefense) {
+        if (playingDefense()) {
             new DefenseLightsCommand(led, 0, 67);
         } else 
         if (DriverStation.isAutonomous() && allianceIsRed){
@@ -87,6 +87,7 @@ public class LEDDefaultCommand extends Command {
     }
 
     private boolean playingDefense() {
+        // TODO: add automatic defense lights
         return false;
     }
 }
index 00278b12f918992ac42da02ca0afc8d0518efe70..3b5259a7f2c1f090bdeb5272f9e76fadc29a2df5 100644 (file)
@@ -18,6 +18,7 @@ import frc.robot.subsystems.spindexer.Spindexer;
 import frc.robot.subsystems.turret.Turret;
 import frc.robot.subsystems.hood.Hood;
 import frc.robot.subsystems.Intake.Intake;
+import frc.robot.subsystems.LED.LED;
 import lib.controllers.PS5Controller;
 import lib.controllers.PS5Controller.PS5Axis;
 import lib.controllers.PS5Controller.PS5Button;