From d0ef20ef06fdc3f2b32b594abe8f829792693437 Mon Sep 17 00:00:00 2001 From: Kavin Muralikrishnan Date: Sun, 6 Oct 2024 16:08:08 -0400 Subject: [PATCH] changed while true to repeat command --- src/main/java/frc/robot/RobotContainer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 66b7d66..09122d4 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -6,9 +6,11 @@ import edu.wpi.first.wpilibj.XboxController; import frc.robot.commands.DriveCommands; +import frc.robot.commands.ServoCommands; import frc.robot.subsystems.Servo; import frc.robot.subsystems.XRPDrivetrain; import edu.wpi.first.wpilibj2.command.Command; +import edu.wpi.first.wpilibj2.command.RepeatCommand; import edu.wpi.first.wpilibj2.command.button.CommandXboxController; import edu.wpi.first.wpilibj2.command.button.Trigger; @@ -48,8 +50,8 @@ public RobotContainer() { private void configureButtonBindings() { //TODO: Task 7-Uncomment the lines below and replace the null values with the commands you created to move the servo up and down, such that the y button moves it up //and the a button moves it down. - // m_controller.y().whileTrue(null); - // m_controller.a().whileTrue(null); + // m_controller.y().whileTrue(new RepeatCommand(null)); + // m_controller.a().whileTrue(new RepeatCommand(null)); } /**