From 4714c0717c359f5c9edfc90193b4dc91691cd5f7 Mon Sep 17 00:00:00 2001 From: "Keenan D. Buckley" Date: Mon, 10 Feb 2020 22:51:22 -0700 Subject: [PATCH] Update Y button to properly update the drive subsytem --- src/main/java/frc4388/robot/RobotContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/frc4388/robot/RobotContainer.java b/src/main/java/frc4388/robot/RobotContainer.java index b4c9a3b..e46afbd 100644 --- a/src/main/java/frc4388/robot/RobotContainer.java +++ b/src/main/java/frc4388/robot/RobotContainer.java @@ -98,7 +98,7 @@ public class RobotContainer { .whenPressed(new InstantCommand(() -> m_robotDrive.resetGyroYaw(), m_robotDrive)); new JoystickButton(getDriverJoystick(), XboxController.Y_BUTTON) - .whenPressed(new InstantCommand(() -> m_robotDrive.playSong("HesAPirate"))); + .whileHeld(new RunCommand(() -> m_robotDrive.playSong(), m_robotDrive)); //new JoystickButton(getDriverJoystick(), XboxController.Y_BUTTON) // .whenPressed(new RunCommand(() -> m_robotDrive.runMotionMagicPID(5000, 0), m_robotDrive));