Skip to content

Commit

Permalink
Attempt to fix Conveyor Direction
Browse files Browse the repository at this point in the history
REQUIRES TESTING, IF IT DOES NOT WORK CHANGE CONVEYOR_MOTOR_1_INVERTED BACK TO TRUE AND 2 BACK TO FALSE
  • Loading branch information
EuphoniumPlayer committed Mar 10, 2024
1 parent 5f8df64 commit 3767375
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/subsystems/Conveyor.java
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand All @@ -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
Expand Down

0 comments on commit 3767375

Please sign in to comment.