Added Mystery Feature

Press Y on the operator controller and see what happens...
This commit is contained in:
Elijah Price
2020-02-09 18:33:27 -07:00
parent 68a39f8eca
commit 3e4942f893
5 changed files with 73 additions and 15 deletions
@@ -97,6 +97,9 @@ public class RobotContainer {
new JoystickButton(getDriverJoystick(), XboxController.X_BUTTON)
.whenPressed(new InstantCommand(() -> m_robotDrive.resetGyroYaw(), m_robotDrive));
new JoystickButton(getDriverJoystick(), XboxController.Y_BUTTON)
.whenPressed(new InstantCommand(() -> m_robotDrive.playSong("HesAPirate")));
//new JoystickButton(getDriverJoystick(), XboxController.Y_BUTTON)
// .whenPressed(new RunCommand(() -> m_robotDrive.runMotionMagicPID(5000, 0), m_robotDrive));
// interrupts any running command