From fc9498e98efacff596ddcb61f777caf853cf4141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=AEZach=20Wilke?= <90875734+76842@users.noreply.github.com> Date: Mon, 1 Nov 2021 16:17:19 -0600 Subject: [PATCH] fix binding and fix str[] in dprint --- src/main/java/frc4388/robot/RobotContainer.java | 9 ++++----- src/main/java/frc4388/utility/DPrint.java | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/frc4388/robot/RobotContainer.java b/src/main/java/frc4388/robot/RobotContainer.java index 2d54476..44270ea 100644 --- a/src/main/java/frc4388/robot/RobotContainer.java +++ b/src/main/java/frc4388/robot/RobotContainer.java @@ -53,7 +53,7 @@ public class RobotContainer { private final ShootTube m_robotShooter = new ShootTube(SolenoidArray); - private final DPrinter m_debugLogger = m_robotMap.DPrinter + private final DPrinter m_debugLogger = m_robotMap.DPrinter; /* Controllers */ private final XboxController m_driverXbox = new XboxController(OIConstants.XBOX_DRIVER_ID); private final XboxController m_operatorXbox = new XboxController(OIConstants.XBOX_OPERATOR_ID); @@ -94,16 +94,15 @@ public class RobotContainer { .whenReleased(() -> m_robotLED.setPattern(LEDConstants.DEFAULT_PATTERN)); */ /* Fire horn */ - new JoystickButton(getOperatorJoystick(), XboxController.LEFT_TRIGGER_AXIS) + new JoystickButton(getOperatorJoystick(), XboxController.LEFT_TRIGGER) .whenPressed(() -> m_robotHorn.hornSet(true)) .whenReleased(() -> m_robotHorn.hornSet(false)); - /* Shoot T-Shirt */ - new JoystickButton(getOperatorJoystick(), XboxController.RIGHT_TRIGGER_AXIS) + /* Shoot T-Shirt, Also cycles the array */ + new JoystickButton(getOperatorJoystick(), XboxController.RIGHT_TRIGGER) .whenPressed(() -> m_robotShooter.ShootTubeSet(true)) .whenReleased(() -> m_robotShooter.ShootTubeSet(false)); - /* TODO: Check if these binds work */ /* Cycle Between Solenoids */ new JoystickButton(getOperatorJoystick(), XboxController.LEFT_BUMPER_BUTTON) .whenPressed(() -> m_robotShooter.CycleDown()); diff --git a/src/main/java/frc4388/utility/DPrint.java b/src/main/java/frc4388/utility/DPrint.java index 6b5c72f..efd458b 100644 --- a/src/main/java/frc4388/utility/DPrint.java +++ b/src/main/java/frc4388/utility/DPrint.java @@ -8,7 +8,7 @@ public class DPrint { public DPrint(str type) { m_debugMsgType = type; } - public println(str[] mesage) { + public println(str mesage) { switch (m_debugMsgType) { case DebugConstants.TYPE_INFO: if (DebugConstants.SHOW_INFO) { @@ -19,7 +19,7 @@ public class DPrint { ; } } - public print(str[] mesage) { + public print(str mesage) { switch (m_debugMsgType) { case DebugConstants.TYPE_INFO: if (DebugConstants.SHOW_INFO) {