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)