Skip to content

Commit 21be8ba

Browse files
committed
specific teleops
1 parent 44c5f51 commit 21be8ba

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package org.firstinspires.ftc.teamcode.drive;
2+
3+
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
4+
import com.qualcomm.robotcore.hardware.DcMotor;
5+
6+
public class LukeSpecifically extends LinearOpMode {
7+
8+
9+
private DcMotor front_left;
10+
private DcMotor front_right;
11+
private DcMotor back_left;
12+
private DcMotor back_right;
13+
14+
15+
16+
@Override
17+
public void runOpMode() throws InterruptedException{
18+
//the code doesn't wait for start
19+
front_left = hardwareMap.get(DcMotor.class,"left_front_left_dw");
20+
front_right = hardwareMap.get(DcMotor.class,"right_front");
21+
back_left = hardwareMap.get(DcMotor.class,"left_back");
22+
back_right = hardwareMap.get(DcMotor.class,"right_back_right_dw");
23+
if(gamepad1.left_stick_y > 0){
24+
front_left.setPower (1);
25+
front_right.setPower((1));
26+
back_left.setPower(1);
27+
back_right.setPower(1);
28+
29+
}
30+
31+
}
32+
}

0 commit comments

Comments
 (0)