Skip to content

Commit

Permalink
you can press a to switch drive modes
Browse files Browse the repository at this point in the history
  • Loading branch information
ieatred40 committed Oct 23, 2024
1 parent f71fa99 commit 6cdf9df
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
import org.firstinspires.ftc.teamcode.util.Toggle;

@TeleOp
public class TrumanLearnsTeleOP extends LinearOpMode {

public class TrumansSkibidiDriveModes extends LinearOpMode {
private DcMotor topLeftMotor;
private DcMotor topRightMotor;
private DcMotor bottomLeftMotor;
Expand All @@ -25,7 +24,7 @@ public void runOpMode() throws InterruptedException {
double rx;
double ry;
boolean leftBumper;
boolean rightBumper; //why? just use if statements
boolean rightBumper; //why? just use if statements /////why not.....
topLeftMotor = hardwareMap.get(DcMotor.class,"FL");
topRightMotor = hardwareMap.get(DcMotor.class,"FR");
bottomLeftMotor = hardwareMap.get(DcMotor.class,"BL");
Expand Down Expand Up @@ -68,18 +67,19 @@ public void runOpMode() throws InterruptedException {
telemetry.update();
}
else{
double y = -gamepad1.left_stick_y; // Remember, Y stick is reversed!
double y = -gamepad1.left_stick_y; // Y stick is reversed!
double x = gamepad1.left_stick_x;
double rx2 = gamepad1.right_stick_x;

topLeftMotor.setPower(y+ x + rx2);
bottomLeftMotor.setPower(y - x + rx2);
topRightMotor.setPower(y - x - rx2);
bottomRightMotor.setPower(y + x - rx2);
// remember kids plagiarism is wrong
}

//while(!check){
//put the other stuff that isn't t-bar steering here
// while(!check){
// put the other stuff that isn't t-bar steering here
}
}
}
Expand Down

0 comments on commit 6cdf9df

Please sign in to comment.