Skip to content

Commit

Permalink
fix slides no longer breaks slides
Browse files Browse the repository at this point in the history
  • Loading branch information
pserb committed Jan 18, 2023
1 parent ad7aad6 commit 3b244d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions opmode/teleop/FixSlides.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ public void runOpMode() throws InterruptedException {
drivetrain.loop(gamepad1);

if (gamepad1.right_trigger > 0) {
slidesMotors.setPower(0.7);
slidesMotors.setPower(0.5);
} else if (gamepad1.left_trigger > 0) {
slidesMotors.setPower(-0.7);
slidesMotors.setPower(-0.5);
} else if (gamepad1.dpad_up) {
arm.scorePos();
} else if (gamepad1.dpad_down) {
arm.intakePos();
} else {
slidesMotors.setPower(0);
}
}
}
Expand Down

0 comments on commit 3b244d7

Please sign in to comment.