Update Y button to properly update the drive subsytem

This commit is contained in:
Keenan D. Buckley
2020-02-10 22:51:22 -07:00
parent 0636f3dfe3
commit 4714c0717c
@@ -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));