Skip to content

Commit

Permalink
Fix conveyor logic
Browse files Browse the repository at this point in the history
Same issue with the flywheel being incorrect.
  • Loading branch information
garrettsummerfi3ld committed Mar 12, 2024
1 parent 78b1a36 commit cee2849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/commands/ConveyorCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public void initialize() {}

@Override
public void execute() {
if (ConveyorJoystick.getRawButton(5 | 3 | 10)) {
if (ConveyorJoystick.getRawButton(5) || ConveyorJoystick.getRawButton(3) || ConveyorJoystick.getRawButton(10)) {
m_ConveyorSubsystem.intakeConveyor();
} else if (ConveyorJoystick.getRawButton(6 | 4 | 9)) {
} else if (ConveyorJoystick.getRawButton(6) || ConveyorJoystick.getRawButton(4) || ConveyorJoystick.getRawButton(9)) {
m_ConveyorSubsystem.reverseConveyor();
System.out.println("Conveyor Moving in Reverse");
} else {
Expand Down

0 comments on commit cee2849

Please sign in to comment.