From 99c50dc4fc397e1393249ff5d0ee9463966bfebf Mon Sep 17 00:00:00 2001 From: OlivierDubois Date: Wed, 11 Dec 2024 18:45:09 -0500 Subject: [PATCH] desaccumuler mode auto --- src/main/deploy/pathplanner/autos/mode 1.auto | 6 ++++++ src/main/java/frc/robot/RobotContainer.java | 1 + 2 files changed, 7 insertions(+) diff --git a/src/main/deploy/pathplanner/autos/mode 1.auto b/src/main/deploy/pathplanner/autos/mode 1.auto index 1934679..836382d 100644 --- a/src/main/deploy/pathplanner/autos/mode 1.auto +++ b/src/main/deploy/pathplanner/autos/mode 1.auto @@ -27,6 +27,12 @@ "waitTime": 2.0 } }, + { + "type": "named", + "data": { + "name": "lancer" + } + }, { "type": "named", "data": { diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 50c1543..29eff46 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -32,6 +32,7 @@ public class RobotContainer { CommandXboxController manette = new CommandXboxController(0); public RobotContainer() { NamedCommands.registerCommand("lancer", new Lancer(lanceur, accumulateur)); + NamedCommands.registerCommand("Desaccumuler", new Desaccumuler(accumulateur)); autoChooser = AutoBuilder.buildAutoChooser(); dashboard.addCamera("limelight3G", "limelight3G","limelight.local:5800") .withSize(3,4)