File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/drive Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments