From c841a5b86196788daae6796b9b18380c579d63d4 Mon Sep 17 00:00:00 2001 From: Joseph Eng <91924258+KangarooKoala@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:37:46 -0800 Subject: [PATCH] Add requirements to ExampleSetSpeedCommand --- .../java/frc/robot/commands/example/ExampleSetSpeedCommand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/frc/robot/commands/example/ExampleSetSpeedCommand.java b/src/main/java/frc/robot/commands/example/ExampleSetSpeedCommand.java index bebeeb8..2f32600 100644 --- a/src/main/java/frc/robot/commands/example/ExampleSetSpeedCommand.java +++ b/src/main/java/frc/robot/commands/example/ExampleSetSpeedCommand.java @@ -11,6 +11,7 @@ public class ExampleSetSpeedCommand extends Command { public ExampleSetSpeedCommand(ExampleSubsystem exampleSubsystem, double speed) { this.exampleSubsystem = exampleSubsystem; this.speed = speed; + addRequirements(exampleSubsystem); } @Override