Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/Train' into Train
Browse files Browse the repository at this point in the history
  • Loading branch information
ntt305 committed Oct 10, 2024
2 parents b561675 + 8fa9954 commit f529b30
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,35 @@ public void runOpMode() throws InterruptedException {
back_right = hardwareMap.get(DcMotor.class, "right_back_right_dw");

while (opModeIsActive()) {
if (gamepad1.left_stick_x > 0) {
if (gamepad1.left_stick_x > 0.3) {
front_left.setPower(1);
front_right.setPower(1);
back_left.setPower(1);
back_right.setPower(1);
}
if (gamepad1.left_stick_x < 0.3) {
front_left.setPower(0);
front_right.setPower(0);
back_right.setPower(0);
back_left.setPower(0);
}
if (gamepad1.left_bumper) {
front_left.setPower(1);
back_left.setPower(1);
}
else {
front_left.setPower(0);
back_left.setPower(0);
}
if (gamepad1.right_bumper) {
front_right.setPower(1);
back_right.setPower(1);
}
else {
front_right.setPower(0);
back_right.setPower(0);
}
}
}

}


}

Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void runOpMode() throws InterruptedException {
previous_error = current_error
previous_time = current_time
Arm.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);
Arm.setPower(0);
Arm.setPower(0);*/
}
//3 hours for 1 bracket... always remember to click code->reformat code

Expand Down

0 comments on commit f529b30

Please sign in to comment.