From bb9c325479daabcf8eabdc401c2e80752cf88626 Mon Sep 17 00:00:00 2001 From: ryan123rudder <42309874+ryan123rudder@users.noreply.github.com> Date: Fri, 13 Mar 2020 17:10:44 -0600 Subject: [PATCH] doneish --- src/main/java/frc4388/robot/RobotContainer.java | 4 ++-- .../frc4388/robot/commands/shooter/RunHoodWithJoystick.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/frc4388/robot/RobotContainer.java b/src/main/java/frc4388/robot/RobotContainer.java index cfd064b..eaaab06 100644 --- a/src/main/java/frc4388/robot/RobotContainer.java +++ b/src/main/java/frc4388/robot/RobotContainer.java @@ -139,7 +139,7 @@ public class RobotContainer { m_robotLED.setDefaultCommand(new RunCommand(() -> m_robotLED.updateLED(), m_robotLED)); // runs the storage not //m_robotStorage.setDefaultCommand(new RunCommand(() -> m_robotStorage.runStorage(0), m_robotStorage)); - m_robotStorage.setDefaultCommand(new InstantCommand(() -> m_robotStorage.changeStorageMode(StorageMode.IDLE))); + m_robotStorage.setDefaultCommand(new ManageStorage(m_robotStorage)); //m_robotLime.setDefaultCommand(new RunCommand(() -> m_robotLime.limeOff(), m_robotLime)); } @@ -257,7 +257,7 @@ public class RobotContainer { // Meg new JoystickButton(getButtonFox(), ButtonFox.MIDDLE_SWITCH) - .whileHeld(new PlaySongDrive(m_robotDrive)) + .whenPressed(new PlaySongDrive(m_robotDrive)) .whenReleased(new InterruptSubystem(m_robotDrive)); // Shooter Manual diff --git a/src/main/java/frc4388/robot/commands/shooter/RunHoodWithJoystick.java b/src/main/java/frc4388/robot/commands/shooter/RunHoodWithJoystick.java index 29ca105..f406e04 100644 --- a/src/main/java/frc4388/robot/commands/shooter/RunHoodWithJoystick.java +++ b/src/main/java/frc4388/robot/commands/shooter/RunHoodWithJoystick.java @@ -37,7 +37,7 @@ public class RunHoodWithJoystick extends CommandBase { // Called every time the scheduler runs while the command is scheduled. @Override public void execute() { - double input = m_controller.getRightXAxis(); + double input = m_controller.getRightYAxis(); m_hood.runHood(input); }