diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmode/PatrickTeleOP.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmode/PatrickTeleOP.java index b1223fb..b5f0504 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmode/PatrickTeleOP.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmode/PatrickTeleOP.java @@ -4,6 +4,7 @@ import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import com.qualcomm.robotcore.hardware.DcMotor; +import com.qualcomm.robotcore.hardware.DcMotorSimple; @Config @TeleOp @@ -23,7 +24,9 @@ public void runOpMode() throws InterruptedException { back_right = hardwareMap.get(DcMotor.class, "right_back_right_dw"); while (opModeIsActive()) { - if (gamepad1.left_stick_x > 0.3) { + front_left.setDirection(DcMotorSimple.Direction.REVERSE); + back_left.setDirection(DcMotorSimple.Direction.REVERSE); + if (gamepad1.left_stick_y > 0.3) { front_left.setPower(1); front_right.setPower(1); back_left.setPower(1);