Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/Train' into Train
Browse files Browse the repository at this point in the history
  • Loading branch information
ntt305 committed Oct 15, 2024
2 parents 0549ac0 + 1ef6e68 commit cca67ff
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit cca67ff

Please sign in to comment.