Skip to content

Commit

Permalink
specific teleops
Browse files Browse the repository at this point in the history
  • Loading branch information
gaviniscool6 committed Sep 30, 2024
1 parent 44c5f51 commit 21be8ba
Showing 1 changed file with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package org.firstinspires.ftc.teamcode.drive;

import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;

public class LukeSpecifically extends LinearOpMode {


private DcMotor front_left;
private DcMotor front_right;
private DcMotor back_left;
private DcMotor back_right;



@Override
public void runOpMode() throws InterruptedException{
//the code doesn't wait for start
front_left = hardwareMap.get(DcMotor.class,"left_front_left_dw");
front_right = hardwareMap.get(DcMotor.class,"right_front");
back_left = hardwareMap.get(DcMotor.class,"left_back");
back_right = hardwareMap.get(DcMotor.class,"right_back_right_dw");
if(gamepad1.left_stick_y > 0){
front_left.setPower (1);
front_right.setPower((1));
back_left.setPower(1);
back_right.setPower(1);

}

}
}

0 comments on commit 21be8ba

Please sign in to comment.