From 823c34abe6e04e86c7e2caacf01c95518a26ae8c Mon Sep 17 00:00:00 2001 From: DriverStationComputer Date: Sat, 20 Jul 2024 17:27:57 -0700 Subject: [PATCH] add shoot-only autos --- .../pathplanner/autos/Preload1Center.auto | 25 +++++++++++++++++++ .../pathplanner/autos/Preload1Left.auto | 25 +++++++++++++++++++ .../pathplanner/autos/Preload1Right.auto | 25 +++++++++++++++++++ .../org/carlmontrobotics/RobotContainer.java | 1 + 4 files changed, 76 insertions(+) create mode 100644 src/main/deploy/pathplanner/autos/Preload1Center.auto create mode 100644 src/main/deploy/pathplanner/autos/Preload1Left.auto create mode 100644 src/main/deploy/pathplanner/autos/Preload1Right.auto diff --git a/src/main/deploy/pathplanner/autos/Preload1Center.auto b/src/main/deploy/pathplanner/autos/Preload1Center.auto new file mode 100644 index 0000000..5ef36e5 --- /dev/null +++ b/src/main/deploy/pathplanner/autos/Preload1Center.auto @@ -0,0 +1,25 @@ +{ + "version": 1.0, + "startingPose": { + "position": { + "x": 1.3643318281897225, + "y": 5.534466424383086 + }, + "rotation": 0 + }, + "command": { + "type": "sequential", + "data": { + "commands": [ + { + "type": "named", + "data": { + "name": "Shoot" + } + } + ] + } + }, + "folder": null, + "choreoAuto": false +} \ No newline at end of file diff --git a/src/main/deploy/pathplanner/autos/Preload1Left.auto b/src/main/deploy/pathplanner/autos/Preload1Left.auto new file mode 100644 index 0000000..0ca87a7 --- /dev/null +++ b/src/main/deploy/pathplanner/autos/Preload1Left.auto @@ -0,0 +1,25 @@ +{ + "version": 1.0, + "startingPose": { + "position": { + "x": 0.7029193205305838, + "y": 6.701664967310976 + }, + "rotation": 62.402704131356344 + }, + "command": { + "type": "sequential", + "data": { + "commands": [ + { + "type": "named", + "data": { + "name": "Shoot" + } + } + ] + } + }, + "folder": null, + "choreoAuto": false +} \ No newline at end of file diff --git a/src/main/deploy/pathplanner/autos/Preload1Right.auto b/src/main/deploy/pathplanner/autos/Preload1Right.auto new file mode 100644 index 0000000..9e46106 --- /dev/null +++ b/src/main/deploy/pathplanner/autos/Preload1Right.auto @@ -0,0 +1,25 @@ +{ + "version": 1.0, + "startingPose": { + "position": { + "x": 0.7223726295793819, + "y": 4.3964478450283915 + }, + "rotation": -62.402704131356224 + }, + "command": { + "type": "sequential", + "data": { + "commands": [ + { + "type": "named", + "data": { + "name": "Shoot" + } + } + ] + } + }, + "folder": null, + "choreoAuto": false +} \ No newline at end of file diff --git a/src/main/java/org/carlmontrobotics/RobotContainer.java b/src/main/java/org/carlmontrobotics/RobotContainer.java index 579b5e8..9983108 100644 --- a/src/main/java/org/carlmontrobotics/RobotContainer.java +++ b/src/main/java/org/carlmontrobotics/RobotContainer.java @@ -105,6 +105,7 @@ public class RobotContainer { "Center Field Limelight(No Preload)", "Center Forward", "Right Forward", "Left Forward", "Backup-Center", "Backup-Right", "Backup-Left", + "Preload1Center", "Preload1Right", "Preload1Left", }; DigitalInput[] autoSelectors = new DigitalInput[Math.min(autoNames.length, 10)];