From 2e24b95793982454cd3f51502b3e2443ebf6aa1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=AEZach=20Wilke?= <90875734+76842@users.noreply.github.com> Date: Mon, 25 Oct 2021 16:33:17 -0600 Subject: [PATCH] Changed Xbox bindings from "Not working" to working --- src/main/java/frc4388/robot/RobotContainer.java | 10 +++++++--- src/main/java/frc4388/robot/subsystems/ShootTube.java | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc4388/robot/RobotContainer.java b/src/main/java/frc4388/robot/RobotContainer.java index b113e74..9c3e1ee 100644 --- a/src/main/java/frc4388/robot/RobotContainer.java +++ b/src/main/java/frc4388/robot/RobotContainer.java @@ -105,15 +105,15 @@ public class RobotContainer { /* TODO: Check if these binds work */ /* Cycle Between Solenoids */ - new JoystickButton(getOperatorJoystick(), XboxController.DPAD_LEFT) + new JoystickButton(getOperatorJoystick(), XboxController.LEFT_BUMPER_BUTTON) .whenPressed(() -> m_robotShooter.CycleDown()); - new JoystickButton(getOperatorJoystick(), XboxController.DPAD_RIGHT) + new JoystickButton(getOperatorJoystick(), XboxController.RIGHT_BUMPER_BUTTON) .whenPressed(() -> m_robotShooter.CycleUp()); /* Fire All of the Solenoids In the Shooter Array */ /* Extra power. this will be truly worth "I Survived the T Shirt Cannon" T-shirt */ - new JoystickButton(getOperatorJoystick(), XboxController.DPAD_DOWN) + new JoystickButton(getOperatorJoystick(), XboxController.X_BUTTON) .whenPressed(() -> m_robotShooter.ShootTubeALL(true)) .whenReleased(() -> m_robotShooter.ShootTubeALL(false)); @@ -133,6 +133,7 @@ public class RobotContainer { /** * Add your docs here. */ + /* No I don't think i will */ public IHandController getDriverController() { return m_driverXbox; } @@ -140,6 +141,7 @@ public class RobotContainer { /** * Add your docs here. */ + /* No I don't think i will */ public IHandController getOperatorController() { return m_operatorXbox; } @@ -147,6 +149,7 @@ public class RobotContainer { /** * Add your docs here. */ + /* No I don't think i will */ public Joystick getOperatorJoystick() { return m_operatorXbox.getJoyStick(); } @@ -154,6 +157,7 @@ public class RobotContainer { /** * Add your docs here. */ + /* No I don't think i will */ public Joystick getDriverJoystick() { return m_driverXbox.getJoyStick(); } diff --git a/src/main/java/frc4388/robot/subsystems/ShootTube.java b/src/main/java/frc4388/robot/subsystems/ShootTube.java index 8aacebb..371781b 100644 --- a/src/main/java/frc4388/robot/subsystems/ShootTube.java +++ b/src/main/java/frc4388/robot/subsystems/ShootTube.java @@ -15,7 +15,7 @@ public class ShootTube extends SubsystemBase { int m_cycleCount = 0; int m_maxCount; public ShootTube(Solenoid[] solenoids) { - m_solenoids = solenoidArray; + m_solenoids = solenoids; m_maxCount = m_solenoids.length; } /*