-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44c5f51
commit 21be8ba
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/drive/LukeSpecifically.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
} | ||
|
||
} | ||
} |