]> git.taranathan.com Git - FRC2026.git/commitdiff
-imports, other fixes
authoriefomit <timofei.stem@gmail.com>
Thu, 23 Apr 2026 04:02:14 +0000 (21:02 -0700)
committeriefomit <timofei.stem@gmail.com>
Thu, 23 Apr 2026 04:02:14 +0000 (21:02 -0700)
src/main/java/frc/robot/RobotContainer.java
src/main/java/frc/robot/commands/LogCommand.java
src/main/java/frc/robot/commands/auto_comm/DynamicAutoBuilder.java
src/main/java/frc/robot/commands/gpm/RunSpindexerWithStop.java
src/main/java/frc/robot/controls/PS5ControllerDriverConfig.java
src/main/java/frc/robot/util/PathGroupLoader.java

index 0c8dc64f6fd2b5e14cfd0336c7ce88752eb1a5e8..63deb64dae413f5326ccebaf4c9a4b783f0e6e29 100644 (file)
@@ -21,7 +21,6 @@ import edu.wpi.first.wpilibj2.command.InstantCommand;
 import edu.wpi.first.wpilibj2.command.ParallelCommandGroup;
 import frc.robot.commands.DoNothing;
 import frc.robot.commands.LogCommand;
-import frc.robot.commands.Music;
 import frc.robot.commands.auto_comm.DynamicAutoBuilder;
 import frc.robot.commands.drive_comm.DefaultDriveCommand;
 import frc.robot.commands.gpm.IntakeMovementCommand;
@@ -244,6 +243,11 @@ public class RobotContainer {
         hood.forceHoodDown(false);
       }));
     }
+
+    NamedCommands.registerCommand("After Depot", new InstantCommand());
+    NamedCommands.registerCommand("Constraints Zone", new InstantCommand());
+    NamedCommands.registerCommand("Depot", new InstantCommand());
+    NamedCommands.registerCommand("Reset Spindexer", new InstantCommand());
   }
 
   public void addAuto(String name) {
index 6392304fd75f578e0737270612a3c51452402ae1..33409716e4b08e47cc4a68fbbe94f7fca98e2332 100644 (file)
@@ -4,7 +4,6 @@ import org.littletonrobotics.junction.Logger;
 
 import edu.wpi.first.wpilibj2.command.Command;
 import frc.robot.constants.Constants;
-import frc.robot.subsystems.spindexer.Spindexer;
 import frc.robot.util.Elastic;
 import frc.robot.util.HubActive;
 import frc.robot.util.Elastic.Notification;
@@ -19,6 +18,10 @@ public class LogCommand extends Command {
 
     @Override
     public void execute() {
+        if (Constants.DISABLE_LOGGING) {
+            return;
+        }
+
         boolean current = HubActive.isHubActive();
         Logger.recordOutput("HubActive", current);
         
index 1fcdf01605b53972adb9329b65621f08340f2985..d219996a54cf63b37cb9516d79bad59564041979 100644 (file)
@@ -1,14 +1,8 @@
 package frc.robot.commands.auto_comm;
 
-import edu.wpi.first.math.geometry.Translation2d;
-import edu.wpi.first.wpilibj.Timer;
 import edu.wpi.first.wpilibj2.command.*;
-import frc.robot.commands.gpm.IntakeCommand;
-import frc.robot.commands.gpm.RunSpindexer;
 import frc.robot.commands.gpm.RunSpindexerWithStop;
 import frc.robot.subsystems.Intake.Intake;
-import frc.robot.subsystems.PowerControl.BreakerConstants;
-import frc.robot.subsystems.PowerControl.EMABreaker;
 import frc.robot.subsystems.drivetrain.Drivetrain;
 import frc.robot.subsystems.hood.Hood;
 import frc.robot.subsystems.spindexer.Spindexer;
index 2a08f33327955cfc4dc24fe32506e8a808a66750..b3f592b773143be7b714cc108f54ae234521ffef 100644 (file)
@@ -2,16 +2,11 @@ package frc.robot.commands.gpm;
 
 import org.littletonrobotics.junction.Logger;
 
-import com.pathplanner.lib.auto.NamedCommands;
-
 import edu.wpi.first.math.filter.Debouncer;
 import edu.wpi.first.math.filter.Debouncer.DebounceType;
-import edu.wpi.first.units.measure.Time;
 import edu.wpi.first.wpilibj.Timer;
 import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
 import edu.wpi.first.wpilibj2.command.Command;
-import edu.wpi.first.wpilibj2.command.CommandScheduler;
-import edu.wpi.first.wpilibj2.command.InstantCommand;
 import frc.robot.constants.Constants;
 import frc.robot.subsystems.Intake.Intake;
 import frc.robot.subsystems.Intake.IntakeConstants;
index fb8dfd34716c5e5023cb6847edc0066e1defbf67..6a7caa8127be39a9a466fc64cc6ac2527ab14e07 100644 (file)
@@ -11,7 +11,6 @@ import frc.robot.Robot;
 import frc.robot.commands.gpm.IntakeMovementCommand;
 import frc.robot.commands.gpm.ReverseMotors;
 import frc.robot.commands.gpm.RunSpindexer;
-import frc.robot.commands.gpm.RunSpindexerWithStop;
 import frc.robot.commands.gpm.Superstructure;
 import frc.robot.constants.Constants;
 import frc.robot.subsystems.Intake.Intake;
index b1db28c200738e7861b072c581425dafd38792f3..0708d537c4b1eca9d369a5ee016640035b4fcdb6 100644 (file)
@@ -31,7 +31,7 @@ public class PathGroupLoader {
                 if (file.isFile() && file.getName().contains(".")) {
                     try {
                         long startTime = System.nanoTime();
-                        String name = file.getName().substring(0, file.getName().indexOf("."));
+                        String name = file.getName().substring(0, file.getName().lastIndexOf("."));
                         // pathGroups.put(name, PathPlannerAuto.getPathGroupFromAutoFile(name));
                         pathGroups.put(name, PathPlannerPath.fromPathFile(name));
                         double time = (System.nanoTime() - startTime) / 1000000.0;