Skip to content

Commit

Permalink
Removed Claw
Browse files Browse the repository at this point in the history
Consistent driving and spinning, so we had good beacon hitting and good
scoring up the corner ramp.
  • Loading branch information
blabel3 committed Jan 22, 2017
1 parent dac8275 commit 809d1dd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public class DadDriver extends OpMode
private DcMotor shooter = null;

// uninplemented claw objects
private CRServo leftClaw = null;
private CRServo rightClaw = null;
//private CRServo leftClaw = null;
//private CRServo rightClaw = null;

// shooter variables
private double endTime = 0;
Expand All @@ -86,8 +86,8 @@ public void init() {
shooter = hardwareMap.dcMotor.get("shooter");
spinner = hardwareMap.dcMotor.get("spinner");

leftClaw = hardwareMap.crservo.get("left claw");
rightClaw = hardwareMap.crservo.get("right claw");
//leftClaw = hardwareMap.crservo.get("left claw");
//rightClaw = hardwareMap.crservo.get("right claw");

rightMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);
leftMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);
Expand All @@ -103,8 +103,8 @@ public void init() {
spinner.setDirection(DcMotor.Direction.FORWARD);
shooter.setDirection(DcMotor.Direction.FORWARD);

leftClaw.setDirection(CRServo.Direction.FORWARD);
rightClaw.setDirection(CRServo.Direction.REVERSE);
//leftClaw.setDirection(CRServo.Direction.FORWARD);
//rightClaw.setDirection(CRServo.Direction.REVERSE);

telemetry.addData("Status", "Initialized");
}
Expand All @@ -130,8 +130,8 @@ public void loop() {
telemetry.addData("Right Motor", rightMotor.getPower());
telemetry.addData("Left Motor", leftMotor.getPower());
telemetry.addData("Spinner", spinner.getPower());
telemetry.addData("Left Claw", leftClaw.getPower());
telemetry.addData("Right Claw", rightClaw.getPower());
//telemetry.addData("Left Claw", leftClaw.getPower());
//telemetry.addData("Right Claw", rightClaw.getPower());


// Drivetrain code (note: The joystick goes negative when pushed forwards)
Expand Down Expand Up @@ -181,7 +181,7 @@ public void loop() {
leftClaw.setPower(-gamepad2.left_trigger);
rightClaw.setPower(-gamepad2.left_trigger);
}
*/
if (gamepad2.dpad_up){
leftClaw.setPower(1);
Expand All @@ -195,6 +195,7 @@ public void loop() {
leftClaw.setPower(0);
rightClaw.setPower(0);
}
*/
}


Expand All @@ -208,8 +209,8 @@ public void stop() {
}

private void clawMotorsLow() {
leftClaw.setPower(0);
rightClaw.setPower(0);
//leftClaw.setPower(0);
//nirightClaw.setPower(0);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ public class Unbeacon extends LinearOpMode {
private DcMotor spinner = null;
private DcMotor shooter = null;

private CRServo leftClaw = null;
private CRServo rightClaw = null;
//private CRServo leftClaw = null;
//private CRServo rightClaw = null;

/*Declaring constant values */
final int MOTOR_PULSE_PER_REVOLUTION = 7;
Expand All @@ -86,8 +86,8 @@ public void runOpMode() throws InterruptedException {
shooter = hardwareMap.dcMotor.get("shooter");
spinner = hardwareMap.dcMotor.get("spinner");

leftClaw = hardwareMap.crservo.get("left claw");
rightClaw = hardwareMap.crservo.get("right claw");
//leftClaw = hardwareMap.crservo.get("left claw");
//rightClaw = hardwareMap.crservo.get("right claw");

// Set the drive motor directions
leftMotor.setDirection(DcMotor.Direction.REVERSE);
Expand Down

0 comments on commit 809d1dd

Please sign in to comment.