From 3767375703cd5df339565f259a6299b9efb01cef Mon Sep 17 00:00:00 2001 From: EuphoniumPlayer Date: Sun, 10 Mar 2024 12:40:05 -0500 Subject: [PATCH] Attempt to fix Conveyor Direction REQUIRES TESTING, IF IT DOES NOT WORK CHANGE CONVEYOR_MOTOR_1_INVERTED BACK TO TRUE AND 2 BACK TO FALSE --- src/main/java/frc/robot/Constants.java | 4 ++-- src/main/java/frc/robot/subsystems/Conveyor.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 683f0e5..042799c 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -82,8 +82,8 @@ public static class MechanismConstants { // Conveyor Motors public static final int CONVEYOR_MOTOR_1 = 1; public static final int CONVEYOR_MOTOR_2 = 2; - public static final boolean CONVEYOR_MOTOR_1_INVERTED = true; - public static final boolean CONVEYOR_MOTOR_2_INVERTED = false; + public static final boolean CONVEYOR_MOTOR_1_INVERTED = false; + public static final boolean CONVEYOR_MOTOR_2_INVERTED = true; public static final double CONVEYOR_MOTOR_SPEED = 0.38; // Flywheel Motors diff --git a/src/main/java/frc/robot/subsystems/Conveyor.java b/src/main/java/frc/robot/subsystems/Conveyor.java index 745b04a..4e81f2a 100644 --- a/src/main/java/frc/robot/subsystems/Conveyor.java +++ b/src/main/java/frc/robot/subsystems/Conveyor.java @@ -24,8 +24,8 @@ public Conveyor() { /** Sets the Conveyor motors to 100% power. */ public void intakeConveyor() { - conveyorMotor1.set(-MechanismConstants.CONVEYOR_MOTOR_SPEED); - conveyorMotor2.set(-MechanismConstants.CONVEYOR_MOTOR_SPEED); + conveyorMotor1.set(MechanismConstants.CONVEYOR_MOTOR_SPEED); + conveyorMotor2.set(MechanismConstants.CONVEYOR_MOTOR_SPEED); } /** Sets the Conveyor motors to 0% power. */ @@ -36,8 +36,8 @@ public void disableConveyor() { /** Sets the Conveyor motors to -100% power. (Reverse direction) */ public void reverseConveyor() { - conveyorMotor1.set(MechanismConstants.CONVEYOR_MOTOR_SPEED); - conveyorMotor2.set(MechanismConstants.CONVEYOR_MOTOR_SPEED); + conveyorMotor1.set(-MechanismConstants.CONVEYOR_MOTOR_SPEED); + conveyorMotor2.set(-MechanismConstants.CONVEYOR_MOTOR_SPEED); } @Override