Skip to content

Commit

Permalink
Merge pull request FIRST-Tech-Challenge#4 from aashrithbandaru/master
Browse files Browse the repository at this point in the history
12/22/20 Update
  • Loading branch information
Sweekrit-B committed Dec 22, 2020
2 parents 1920ecf + f7b6fdb commit 670fd15
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,5 @@ public void runOpModeImpl() {

}
}


Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ abstract class IntakeClass extends LinearOpMode

protected DcMotor intake;
protected DcMotor hopper;
protected DcMotor outtake;

public void runOpMode() {
setupDriveMotors();
Expand All @@ -28,6 +29,7 @@ protected void setupDriveMotors() {
updateTelemetryMessage("Initializing Motors");
intake = hardwareMap.get(DcMotor.class, "intake");
hopper = hardwareMap.get(DcMotor.class, "hopper");
outtake = hardwareMap.get(DcMotor.class, "outtake");


// Most robots need the motor on one side to be reve`rsed to drive goBackward
Expand Down
11 changes: 11 additions & 0 deletions TeamCode/src/main/java/org/firstinspires/ftc/teamcode/testing.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ public void runOpModeImpl() {
if (gamepad2.y) {
hopper.setPower(0);
}

if (gamepad1.dpad_up) {
outtake.setPower(1);
}

if (gamepad1.dpad_down) {
outtake.setPower(0);
}



// left bumper - to close claw (front servo)


Expand Down

0 comments on commit 670fd15

Please sign in to comment.