diff --git a/src/main/java/frc/robot/commands/ConveyorCommand.java b/src/main/java/frc/robot/commands/ConveyorCommand.java index 1883c3d..4997710 100644 --- a/src/main/java/frc/robot/commands/ConveyorCommand.java +++ b/src/main/java/frc/robot/commands/ConveyorCommand.java @@ -24,10 +24,9 @@ public void initialize() {} @Override public void execute() { - if (ConveyorJoystick.getRawButton(5) == true | ConveyorJoystick.getRawButton(3) == true) { + if (ConveyorJoystick.getRawButton(5 | 3 | 10)) { m_ConveyorSubsystem.intakeConveyor(); - } else if (ConveyorJoystick.getRawButton(6) == true - | ConveyorJoystick.getRawButton(4) == true) { + } else if (ConveyorJoystick.getRawButton(6 | 4 | 9)) { m_ConveyorSubsystem.reverseConveyor(); System.out.println("Conveyor Moving in Reverse"); } else { diff --git a/src/main/java/frc/robot/commands/ElevatorControl.java b/src/main/java/frc/robot/commands/ElevatorControl.java index 9745c3a..e23517a 100644 --- a/src/main/java/frc/robot/commands/ElevatorControl.java +++ b/src/main/java/frc/robot/commands/ElevatorControl.java @@ -29,9 +29,9 @@ public void initialize() {} // Called every time the scheduler runs while the command is scheduled. @Override public void execute() { - if (ElevatorJoystick.getThrottle() <= -0.85) { + if (ElevatorJoystick.getThrottle() <= -0.75) { ElevatorSubsystem.up(); - } else if (ElevatorJoystick.getThrottle() >= 0.85) { + } else if (ElevatorJoystick.getThrottle() >= 0.75) { ElevatorSubsystem.down(); } } @@ -45,4 +45,4 @@ public void end(boolean interrupted) {} public boolean isFinished() { return false; } -} \ No newline at end of file +} diff --git a/src/main/java/frc/robot/commands/FlyWCommand.java b/src/main/java/frc/robot/commands/FlyWCommand.java index b8df780..3b8b995 100644 --- a/src/main/java/frc/robot/commands/FlyWCommand.java +++ b/src/main/java/frc/robot/commands/FlyWCommand.java @@ -25,15 +25,13 @@ public void initialize() {} @Override public void execute() { - if (FlyWJoystick.getPOV() == 315 | FlyWJoystick.getPOV() == 0 | FlyWJoystick.getPOV() == 45) { + if (FlyWJoystick.getPOV() == (315 | 0 | 45)) { m_FlyWSubsystem.enableflywheelfull(); - } else if (FlyWJoystick.getPOV() == 225 - | FlyWJoystick.getPOV() == 180 - | FlyWJoystick.getPOV() == 135) { + } else if (FlyWJoystick.getPOV() == (225 | 180 | 135)) { m_FlyWSubsystem.enableflywheellow(); - } else if (FlyWJoystick.getRawButton(12) == true) { + } else if (FlyWJoystick.getRawButton(12)) { m_FlyWSubsystem.enableflywheelreduced(); - } else if (FlyWJoystick.getRawButton(7) == true) { + } else if (FlyWJoystick.getRawButton(11 | 7)) { m_FlyWSubsystem.reverseflywheel(); System.out.println("Flywheels Moving in Reverse"); } else { diff --git a/src/main/java/frc/robot/commands/IntakeCommand.java b/src/main/java/frc/robot/commands/IntakeCommand.java index 91a7c32..753e63e 100644 --- a/src/main/java/frc/robot/commands/IntakeCommand.java +++ b/src/main/java/frc/robot/commands/IntakeCommand.java @@ -25,18 +25,18 @@ public void initialize() {} @Override public void execute() { - if (IntakeJoystick.getRawButton(5) == true) { - // sushi in + if (IntakeJoystick.getRawButton(5)) { + // sushi + Conveyor in m_intakeSubsystem.enableIntakeSushi(); - } else if (IntakeJoystick.getRawButton(3) == true) { - // front in + } else if (IntakeJoystick.getRawButton(3)) { + // front + Conveyor in m_intakeSubsystem.enableIntakeFront(); - } else if (IntakeJoystick.getRawButton(4) == true) { - // front out + } else if (IntakeJoystick.getRawButton(4)) { + // front + Conveyor out m_intakeSubsystem.reverseIntakeFront(); System.out.println("Front Rollers Moving in Reverse"); - } else if (IntakeJoystick.getRawButton(6) == true) { - // sushi out + } else if (IntakeJoystick.getRawButton(6)) { + // sushi + Conveyor out m_intakeSubsystem.reverseIntakeSushi(); System.out.println("Sushi Rollers Moving in Reverse"); } else { diff --git a/src/main/java/frc/robot/subsystems/Intake.java b/src/main/java/frc/robot/subsystems/Intake.java index 56ce047..01acf35 100644 --- a/src/main/java/frc/robot/subsystems/Intake.java +++ b/src/main/java/frc/robot/subsystems/Intake.java @@ -39,13 +39,13 @@ public void enableIntakeFront() { intakeFront.set(MechanismConstants.INTAKE_MOTOR_SPEED_FRONT); } - /** Sets the intake motors to 0% power. */ + /** Sets both intake motors to 0% power. */ public void disableIntake() { intakeSushi.set(0); intakeFront.set(0); } - /** Sets the intake motors to -100% power. (Reverse direction) */ + /** Sets the sushi motors to -100% power. (Reverse direction) */ public void reverseIntakeSushi() { intakeSushi.set(-MechanismConstants.INTAKE_MOTOR_SPEED_SUSHI); }