From dfcd6af8549ee777103c24576e9cc6c3a51802d1 Mon Sep 17 00:00:00 2001 From: maxwtan <100314265+MaxwellTTan20@users.noreply.github.com> Date: Fri, 13 Mar 2026 19:24:01 -0700 Subject: [PATCH] Auto working with wait command :) --- .../pathplanner/autos/Left Week V1.auto | 61 +++++++++++++++++++ ...e Test.auto => Simple Test (WORKING).auto} | 0 .../pathplanner/paths/Full Left Path v3.path | 13 ++++ src/main/java/frc/robot/RobotContainer.java | 2 +- 4 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 src/main/deploy/pathplanner/autos/Left Week V1.auto rename src/main/deploy/pathplanner/autos/{Simple Test.auto => Simple Test (WORKING).auto} (100%) diff --git a/src/main/deploy/pathplanner/autos/Left Week V1.auto b/src/main/deploy/pathplanner/autos/Left Week V1.auto new file mode 100644 index 0000000..6d01ac5 --- /dev/null +++ b/src/main/deploy/pathplanner/autos/Left Week V1.auto @@ -0,0 +1,61 @@ +{ + "version": "2025.0", + "command": { + "type": "sequential", + "data": { + "commands": [ + { + "type": "wait", + "data": { + "waitTime": 0.2 + } + }, + { + "type": "named", + "data": { + "name": "Extend Intake" + } + }, + { + "type": "wait", + "data": { + "waitTime": 0.1 + } + }, + { + "type": "named", + "data": { + "name": "Start Spindexer" + } + }, + { + "type": "wait", + "data": { + "waitTime": 1.0 + } + }, + { + "type": "named", + "data": { + "name": "Stop Spindexer" + } + }, + { + "type": "named", + "data": { + "name": "Hood Down" + } + }, + { + "type": "path", + "data": { + "pathName": "Full Left Path v3" + } + } + ] + } + }, + "resetOdom": true, + "folder": null, + "choreoAuto": false +} \ No newline at end of file diff --git a/src/main/deploy/pathplanner/autos/Simple Test.auto b/src/main/deploy/pathplanner/autos/Simple Test (WORKING).auto similarity index 100% rename from src/main/deploy/pathplanner/autos/Simple Test.auto rename to src/main/deploy/pathplanner/autos/Simple Test (WORKING).auto diff --git a/src/main/deploy/pathplanner/paths/Full Left Path v3.path b/src/main/deploy/pathplanner/paths/Full Left Path v3.path index 548cb99..a872326 100644 --- a/src/main/deploy/pathplanner/paths/Full Left Path v3.path +++ b/src/main/deploy/pathplanner/paths/Full Left Path v3.path @@ -157,6 +157,19 @@ "nominalVoltage": 12.0, "unlimited": false } + }, + { + "name": "Starting Slow", + "minWaypointRelativePos": 0.0, + "maxWaypointRelativePos": 0.1, + "constraints": { + "maxVelocity": 0.5, + "maxAcceleration": 0.5, + "maxAngularVelocity": 200.0, + "maxAngularAcceleration": 150.0, + "nominalVoltage": 12.0, + "unlimited": false + } } ], "pointTowardsZones": [], diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 4ad78cf..7704aa2 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -137,7 +137,7 @@ public class RobotContainer { PathGroupLoader.loadPathGroups(); // Load the auto command try { - String leftSideAuto = "Simple Test"; + String leftSideAuto = "Left Week V1"; // String rightSideAuto = "Right(2) - Under Trench"; // String testing = "Straight Test"; PathPlannerAuto.getPathGroupFromAutoFile(leftSideAuto); -- 2.39.5