From: iefomit Date: Wed, 25 Feb 2026 05:54:43 +0000 (-0800) Subject: fixed warnings in terminal X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=511b8a5e20da5cc011f6639ec5f7f1f7c4e1bd12;p=FRC2026.git fixed warnings in terminal --- diff --git a/src/main/deploy/pathplanner/paths/#1 Left to neutral to depot.path b/src/main/deploy/pathplanner/paths/#1 Left to neutral to depot.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/#1 Right to neutral to outpost.path b/src/main/deploy/pathplanner/paths/#1 Right to neutral to outpost.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/#1 left to neutral to depot.path b/src/main/deploy/pathplanner/paths/#1 left to neutral to depot.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/#1 right to neutral to outpost.path b/src/main/deploy/pathplanner/paths/#1 right to neutral to outpost.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/Depot to left climb.path b/src/main/deploy/pathplanner/paths/Depot to left climb.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/Hub to depot.path b/src/main/deploy/pathplanner/paths/Hub to depot.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/Left bump to full neutral to left climb (diagonal).path b/src/main/deploy/pathplanner/paths/Left bump to full neutral to left climb (diagonal).path index 9b6d761..f74fdd9 100644 --- a/src/main/deploy/pathplanner/paths/Left bump to full neutral to left climb (diagonal).path +++ b/src/main/deploy/pathplanner/paths/Left bump to full neutral to left climb (diagonal).path @@ -146,7 +146,7 @@ "pointTowardsZones": [], "eventMarkers": [ { - "name": "Intake fuel", + "name": "Intake", "waypointRelativePos": 0.0, "endWaypointRelativePos": 5.318335208099032, "command": { diff --git a/src/main/deploy/pathplanner/paths/Left bump to full neutral to left climb.path b/src/main/deploy/pathplanner/paths/Left bump to full neutral to left climb.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/Left to neutral to depot (diagonal).path b/src/main/deploy/pathplanner/paths/Left to neutral to depot (diagonal).path index 6916f65..dad32aa 100644 --- a/src/main/deploy/pathplanner/paths/Left to neutral to depot (diagonal).path +++ b/src/main/deploy/pathplanner/paths/Left to neutral to depot (diagonal).path @@ -230,7 +230,7 @@ } }, { - "name": "Intake fuel", + "name": "Intake", "waypointRelativePos": 0.32395950506186116, "endWaypointRelativePos": 8.0, "command": { diff --git a/src/main/deploy/pathplanner/paths/Left to neutral to depot.path b/src/main/deploy/pathplanner/paths/Left to neutral to depot.path index a82ffcb..1532739 100644 --- a/src/main/deploy/pathplanner/paths/Left to neutral to depot.path +++ b/src/main/deploy/pathplanner/paths/Left to neutral to depot.path @@ -236,7 +236,7 @@ "command": { "type": "named", "data": { - "name": "Intake fuel" + "name": "Intake" } } } diff --git a/src/main/deploy/pathplanner/paths/Outpost to right climb.path b/src/main/deploy/pathplanner/paths/Outpost to right climb.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/Over the bump diagonal.path b/src/main/deploy/pathplanner/paths/Over the bump diagonal.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/Over the bump.path b/src/main/deploy/pathplanner/paths/Over the bump.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/depot to left climb.path b/src/main/deploy/pathplanner/paths/depot to left climb.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/hub to depot.path b/src/main/deploy/pathplanner/paths/hub to depot.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/left bump to full neutral to left climb.path b/src/main/deploy/pathplanner/paths/left bump to full neutral to left climb.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/outpost to right climb.path b/src/main/deploy/pathplanner/paths/outpost to right climb.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/over the bump diagonal.path b/src/main/deploy/pathplanner/paths/over the bump diagonal.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/deploy/pathplanner/paths/over the bump.path b/src/main/deploy/pathplanner/paths/over the bump.path deleted file mode 100644 index e69de29..0000000 diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 37ce6e3..39367b7 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -20,7 +20,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.InstantCommand; import edu.wpi.first.wpilibj2.command.ParallelCommandGroup; -import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; import frc.robot.commands.DoNothing; import frc.robot.commands.drive_comm.DefaultDriveCommand; import frc.robot.commands.gpm.AutoShootCommand; @@ -29,7 +28,6 @@ import frc.robot.commands.vision.ShutdownAllPis; import frc.robot.constants.AutoConstants; import frc.robot.constants.Constants; import frc.robot.constants.IntakeConstants; -import frc.robot.constants.VisionConstants; import frc.robot.controls.BaseDriverConfig; import frc.robot.controls.Operator; import frc.robot.controls.PS5ControllerDriverConfig; diff --git a/src/test/java/frc/robot/util/PathCheck.java b/src/test/java/frc/robot/util/PathCheck.java index e601bb7..9343b5c 100644 --- a/src/test/java/frc/robot/util/PathCheck.java +++ b/src/test/java/frc/robot/util/PathCheck.java @@ -1,12 +1,29 @@ package frc.robot.util; +import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; +import com.pathplanner.lib.auto.NamedCommands; + +import edu.wpi.first.wpilibj2.command.InstantCommand; + /** * Simple check on PathPlanner path */ public class PathCheck { + /** + * Register placeholder commands for testing. + * These are normally registered in RobotContainer.registerCommands(), + * but the test doesn't instantiate RobotContainer. + */ + @BeforeAll + public static void registerPlaceholderCommands() { + NamedCommands.registerCommand("Extend intake", new InstantCommand()); + NamedCommands.registerCommand("Intake", new InstantCommand()); + NamedCommands.registerCommand("Climb", new InstantCommand()); + } + /** * Load the path groups. *