From f6654c83b24decd7dd4f1e09205aa037592816b3 Mon Sep 17 00:00:00 2001 From: Ryan Abraham Date: Fri, 13 Oct 2023 16:41:41 -0700 Subject: [PATCH] best ryan mae a 3 auto path --- src/main/deploy/pathplanner/tres.path | 124 ++++++++++++++++++++ src/main/java/frc/robot/auto/AutoPaths.java | 5 + 2 files changed, 129 insertions(+) create mode 100644 src/main/deploy/pathplanner/tres.path diff --git a/src/main/deploy/pathplanner/tres.path b/src/main/deploy/pathplanner/tres.path new file mode 100644 index 0000000..f320d56 --- /dev/null +++ b/src/main/deploy/pathplanner/tres.path @@ -0,0 +1,124 @@ +{ + "waypoints": [ + { + "anchorPoint": { + "x": 2.864908550997658, + "y": 6.402682968560382 + }, + "prevControl": null, + "nextControl": { + "x": 3.864908550997658, + "y": 6.402682968560382 + }, + "holonomicAngle": 0, + "isReversal": false, + "velOverride": null, + "isLocked": false, + "isStopPoint": false, + "stopEvent": { + "names": [], + "executionBehavior": "parallel", + "waitBehavior": "none", + "waitTime": 0 + } + }, + { + "anchorPoint": { + "x": 4.9516054066830355, + "y": 6.302711720006773 + }, + "prevControl": { + "x": 5.037775519995485, + "y": 6.839274343479242 + }, + "nextControl": { + "x": 5.037775519995485, + "y": 6.839274343479242 + }, + "holonomicAngle": 0, + "isReversal": true, + "velOverride": null, + "isLocked": false, + "isStopPoint": false, + "stopEvent": { + "names": [], + "executionBehavior": "parallel", + "waitBehavior": "none", + "waitTime": 0 + } + }, + { + "anchorPoint": { + "x": 3.38790199108176, + "y": 4.812884969519939 + }, + "prevControl": { + "x": 3.959721296178704, + "y": 5.063566934425536 + }, + "nextControl": { + "x": 2.742292349751364, + "y": 4.529853788151792 + }, + "holonomicAngle": 0, + "isReversal": false, + "velOverride": null, + "isLocked": false, + "isStopPoint": false, + "stopEvent": { + "names": [], + "executionBehavior": "parallel", + "waitBehavior": "none", + "waitTime": 0 + } + }, + { + "anchorPoint": { + "x": 5.249837501411114, + "y": 3.711809524313493 + }, + "prevControl": { + "x": 3.996064925581239, + "y": 4.120831656232642 + }, + "nextControl": { + "x": 6.503610077240989, + "y": 3.302787392394344 + }, + "holonomicAngle": 0, + "isReversal": false, + "velOverride": null, + "isLocked": false, + "isStopPoint": false, + "stopEvent": { + "names": [], + "executionBehavior": "parallel", + "waitBehavior": "none", + "waitTime": 0 + } + }, + { + "anchorPoint": { + "x": 3.0707078323878876, + "y": 2.6686640543419977 + }, + "prevControl": { + "x": 2.065428502384783, + "y": 2.8499344272994107 + }, + "nextControl": null, + "holonomicAngle": 0, + "isReversal": false, + "velOverride": null, + "isLocked": false, + "isStopPoint": false, + "stopEvent": { + "names": [], + "executionBehavior": "parallel", + "waitBehavior": "none", + "waitTime": 0 + } + } + ], + "markers": [] +} \ No newline at end of file diff --git a/src/main/java/frc/robot/auto/AutoPaths.java b/src/main/java/frc/robot/auto/AutoPaths.java index ccdd1a4..6aab4cd 100644 --- a/src/main/java/frc/robot/auto/AutoPaths.java +++ b/src/main/java/frc/robot/auto/AutoPaths.java @@ -283,6 +283,11 @@ public void sendCommandsToChooser() { // auto AutoChooser.createSinglePath("Node8-Mobility", node8Mobility); + Command tres = autoBuilder.createPath("tres", kEngagePathConstraints, true); // funny + // cube + // auto + AutoChooser.createSinglePath("tres", tres); + Command node2Mobility = autoBuilder.createPath("Node2-Mobility", kEngagePathConstraints, true); // funny // cube