From edf8abf9983c813d490adc393c25b28fd7f0e4b9 Mon Sep 17 00:00:00 2001 From: Hayden Heroux Date: Tue, 9 Apr 2024 11:00:25 -0400 Subject: [PATCH] fix(auto): Add timeouts to auto. --- simgui.json | 2 +- src/main/java/frc/robot/auto/Auto.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/simgui.json b/simgui.json index 2a82376..de51bfc 100644 --- a/simgui.json +++ b/simgui.json @@ -195,7 +195,7 @@ 0.0, 0.8500000238418579 ], - "height": 0, + "height": 338, "series": [ { "color": [ diff --git a/src/main/java/frc/robot/auto/Auto.java b/src/main/java/frc/robot/auto/Auto.java index 41d0768..05f45fc 100644 --- a/src/main/java/frc/robot/auto/Auto.java +++ b/src/main/java/frc/robot/auto/Auto.java @@ -72,8 +72,8 @@ private Auto() { swerve); NamedCommands.registerCommand("stow", superstructure.stow()); - NamedCommands.registerCommand("shoot", Commands.deadline(Commands.waitSeconds(3.0), superstructure.speaker())); - NamedCommands.registerCommand("intake", superstructure.intake()); + NamedCommands.registerCommand("shoot", superstructure.speaker().withTimeout(1.5)); + NamedCommands.registerCommand("intake", superstructure.intake().withTimeout(1.5)); autoChooser = AutoBuilder.buildAutoChooser(); }