]> git.taranathan.com Git - FRC2026.git/commitdiff
Auto
authorWesleyWong-972 <wesleycwong@gmail.com>
Tue, 24 Mar 2026 00:32:43 +0000 (17:32 -0700)
committerWesleyWong-972 <wesleycwong@gmail.com>
Tue, 24 Mar 2026 00:32:43 +0000 (17:32 -0700)
Event marker doesnt work

src/main/deploy/pathplanner/paths/Kousha S1.path [new file with mode: 0644]
src/main/java/frc/robot/RobotContainer.java

diff --git a/src/main/deploy/pathplanner/paths/Kousha S1.path b/src/main/deploy/pathplanner/paths/Kousha S1.path
new file mode 100644 (file)
index 0000000..de1f0b2
--- /dev/null
@@ -0,0 +1,178 @@
+{
+  "version": "2025.0",
+  "waypoints": [
+    {
+      "anchor": {
+        "x": 4.436754966887417,
+        "y": 7.6431870860927145
+      },
+      "prevControl": null,
+      "nextControl": {
+        "x": 5.436754966887418,
+        "y": 7.6431870860927145
+      },
+      "isLocked": false,
+      "linkedName": null
+    },
+    {
+      "anchor": {
+        "x": 7.921523178807947,
+        "y": 6.750215231788079
+      },
+      "prevControl": {
+        "x": 7.9078401005687935,
+        "y": 7.287276052674142
+      },
+      "nextControl": {
+        "x": 7.9796026490066865,
+        "y": 4.4705960264905045
+      },
+      "isLocked": false,
+      "linkedName": null
+    },
+    {
+      "anchor": {
+        "x": 6.534875827814634,
+        "y": 4.819072847682557
+      },
+      "prevControl": {
+        "x": 7.224569536423906,
+        "y": 4.753733443709048
+      },
+      "nextControl": {
+        "x": 5.615154835282087,
+        "y": 4.906204310133009
+      },
+      "isLocked": false,
+      "linkedName": null
+    },
+    {
+      "anchor": {
+        "x": 5.213567880794766,
+        "y": 5.42890728476865
+      },
+      "prevControl": {
+        "x": 5.888741721854368,
+        "y": 5.153029801324941
+      },
+      "nextControl": {
+        "x": 4.393659545209185,
+        "y": 5.7639235939326525
+      },
+      "isLocked": false,
+      "linkedName": null
+    },
+    {
+      "anchor": {
+        "x": 3.3,
+        "y": 5.75
+      },
+      "prevControl": {
+        "x": 4.100683433038495,
+        "y": 5.703196560889764
+      },
+      "nextControl": null,
+      "isLocked": false,
+      "linkedName": null
+    }
+  ],
+  "rotationTargets": [
+    {
+      "waypointRelativePos": 1.002386634844876,
+      "rotationDegrees": -90.0
+    },
+    {
+      "waypointRelativePos": 1.6658711217183793,
+      "rotationDegrees": -171.29413327946216
+    },
+    {
+      "waypointRelativePos": 2.6348448687350827,
+      "rotationDegrees": 90.0
+    }
+  ],
+  "constraintZones": [
+    {
+      "name": "Constraints Zone",
+      "minWaypointRelativePos": 2.446143154968738,
+      "maxWaypointRelativePos": 3.6302988186240435,
+      "constraints": {
+        "maxVelocity": 3.0,
+        "maxAcceleration": 2.0,
+        "maxAngularVelocity": 200.0,
+        "maxAngularAcceleration": 300.0,
+        "nominalVoltage": 12.0,
+        "unlimited": false
+      }
+    }
+  ],
+  "pointTowardsZones": [],
+  "eventMarkers": [
+    {
+      "name": "Hood Down",
+      "waypointRelativePos": 0,
+      "endWaypointRelativePos": null,
+      "command": null
+    },
+    {
+      "name": "Hood Down",
+      "waypointRelativePos": 0.005559416261295088,
+      "endWaypointRelativePos": null,
+      "command": null
+    },
+    {
+      "name": "Hood Down",
+      "waypointRelativePos": 0.01667824878387202,
+      "endWaypointRelativePos": null,
+      "command": null
+    },
+    {
+      "name": "Extend Intake",
+      "waypointRelativePos": 0.41695621959694984,
+      "endWaypointRelativePos": null,
+      "command": null
+    },
+    {
+      "name": "Spin Intake Rollers",
+      "waypointRelativePos": 0.4447533009034007,
+      "endWaypointRelativePos": null,
+      "command": null
+    },
+    {
+      "name": "Stop Hood Down",
+      "waypointRelativePos": 0.8005559416261216,
+      "endWaypointRelativePos": null,
+      "command": null
+    },
+    {
+      "name": "Start Spindexer",
+      "waypointRelativePos": 0.9506601806810285,
+      "endWaypointRelativePos": null,
+      "command": null
+    },
+    {
+      "name": "Stop Spindexer",
+      "waypointRelativePos": 1.2119527449617822,
+      "endWaypointRelativePos": null,
+      "command": null
+    }
+  ],
+  "globalConstraints": {
+    "maxVelocity": 2.0,
+    "maxAcceleration": 2.0,
+    "maxAngularVelocity": 200.0,
+    "maxAngularAcceleration": 300.0,
+    "nominalVoltage": 12.0,
+    "unlimited": false
+  },
+  "goalEndState": {
+    "velocity": 0,
+    "rotation": 90.0
+  },
+  "reversed": false,
+  "folder": "week 2 autos",
+  "idealStartingState": {
+    "velocity": 0,
+    "rotation": 0.0
+  },
+  "useDefaultConstraints": true
+}
\ No newline at end of file
index fe64006ac8a073db57615b136e6f5a1cc302f3eb..e1f8cce2e043f359db590268b7ebb95d41731d07 100644 (file)
@@ -259,11 +259,13 @@ public class RobotContainer {
     String leftSideAuto = "Left Week V1";
     String rightSideAuto = "Right Week V1";      
     String shootOnlyAuto = "Shoot Only Left Week V1";
+    String koushaDouble = "Kousha Double";
 
     autoChooser.setDefaultOption("Default", new PathPlannerAuto(defaultAuto));
     addAuto(leftSideAuto);
     addAuto(rightSideAuto);
     addAuto(shootOnlyAuto);
+    addAuto(koushaDouble);
   }
 
   public static BooleanSupplier getAllianceColorBooleanSupplier() {