]> git.taranathan.com Git - FRC2026.git/commitdiff
removing rumble
authorEthan Mortensen <ethanmortensen20@gmail.com>
Wed, 25 Feb 2026 23:52:04 +0000 (15:52 -0800)
committerEthan Mortensen <ethanmortensen20@gmail.com>
Wed, 25 Feb 2026 23:52:04 +0000 (15:52 -0800)
even chatGPT could not find why it did not work

src/main/java/frc/robot/RobotContainer.java
src/main/java/frc/robot/commands/led_comm/LEDDefaultCommand.java

index eae6700712ba6bdabad08d8afc19f89c94e5f1a7..fd4457f0e670384bb33ba1ef4c38974b2ec4a408 100644 (file)
@@ -67,7 +67,6 @@ public class RobotContainer {
   private Operator operator = null;
   private LinearClimb linearClimb = null;
   private LED led = null;
-  private PS5ControllerDriverConfig controller = new PS5ControllerDriverConfig(drive, shooter, turret, hood, intake, spindexer, linearClimb);
 
   // Auto Command selection
   private final SendableChooser<Command> autoChooser = new SendableChooser<>();
@@ -91,7 +90,7 @@ public class RobotContainer {
 
       case TestBed2:
         led = new LED();
-        led.setDefaultCommand(new LEDDefaultCommand(led, controller));
+        led.setDefaultCommand(new LEDDefaultCommand(led));
         break;
 
       default:
index c2c53f1e9ce34e809b63071f7d52d7d17e06066f..492a65afea13f501665f899e54890c87b657e9cf 100644 (file)
@@ -17,16 +17,14 @@ import lib.controllers.PS5Controller.PS5Button;
 public class LEDDefaultCommand extends Command {
     private Vision vision;
     private LED led;
-    private PS5ControllerDriverConfig controller;
     // private Outtake outtake;
     private Drivetrain drivetrain;
     private boolean allianceIsRed = DriverStation.getAlliance().get() == DriverStation.Alliance.Red;
 
     
 
-    public LEDDefaultCommand(LED led, PS5ControllerDriverConfig controller) {
+    public LEDDefaultCommand(LED led) {
         this.led = led;
-        this.controller = controller;
         // this.outtake = outtake;
         addRequirements(led);
     }
@@ -44,50 +42,39 @@ 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.startRumble();
         } else if (fiveSecondsBeforeChange()) {
             // blink alliance color and rumble if blue alliance 5 seconds before hub shifts
             led.setStrobeLights(0, 0, 255);
-            controller.startRumble();
         } else 
         if (playingDefense()) {
             new DefenseLightsCommand(led, 0, 67);
-            controller.endRumble();
         } else 
         if (DriverStation.isAutonomous() && allianceIsRed){
             // Dimmer light for auto in red alliance
             led.setLEDs(50, 0, 0);
-            controller.endRumble();
         } else if (DriverStation.isAutonomous()){
             // Dimmer light for auto in blue alliance
             led.setLEDs(0, 0, 50);
-            controller.endRumble();
         } else if ((allianceIsRed && gameData.equals("B") && matchTime <= 105 && matchTime >= 80) || (allianceIsRed && gameData.equals("B") && matchTime <= 55 && matchTime >= 30)) {
             // turn light off for inactive hub if red alliance and blue inactive first
             led.setLEDs(0, 0, 0);
-            controller.endRumble();
         } else if ((allianceIsRed && gameData.equals("R") && matchTime <= 130 && matchTime >= 105) || (allianceIsRed && gameData.equals("R") && matchTime <= 80 && matchTime >= 55)) {
             // turn light off for inactive hub if red alliance and red inactive first
             led.setLEDs(0, 0, 0);
-            controller.endRumble();
         } else if ((!allianceIsRed && gameData.equals("B") && matchTime <= 130 && matchTime >= 105) || (!allianceIsRed && gameData.equals("B") && matchTime <= 80 && matchTime >= 55)) {
             // turn off lights for inactive hub if blue alliance and blue inactive first
             led.setLEDs(0, 0, 0);
-            controller.endRumble();
         } else if ((!allianceIsRed && gameData.equals("R") && matchTime <= 105 && matchTime >= 80) || (!allianceIsRed && gameData.equals("R") && matchTime <= 55 && matchTime >= 30)) {
             // turn light off for inactive hub if blue alliance and red inactive first
             led.setLEDs(0, 0, 0);
-            controller.endRumble();
         } else if (allianceIsRed) {
             // Red alliance
             led.setTwoColorWave(255, 0, 0, 255, 255, 255);
             // led.setLEDs(255, 0, 0);
-            controller.endRumble();
         } else {
             // Blue alliance
             led.setTwoColorWave(0, 0, 255, 255, 255, 255);
             // led.setLEDs(0, 0, 255);
-            controller.endRumble();
         }
     }