From 602f454a7509f249eeb8d8ce9efab0cdabd4dbf9 Mon Sep 17 00:00:00 2001 From: "patrick.taylor" Date: Mon, 14 Oct 2024 18:58:58 -0400 Subject: [PATCH] training method --- .../org/firstinspires/ftc/teamcode/opmode/PatrickTeleOP.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);