Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
fix(auto): Add timeouts to auto.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenheroux committed Apr 9, 2024
1 parent 2594d21 commit edf8abf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion simgui.json
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
0.0,
0.8500000238418579
],
"height": 0,
"height": 338,
"series": [
{
"color": [
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/auto/Auto.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit edf8abf

Please sign in to comment.