Skip to content

Commit

Permalink
Claw controls (commented right now)
Browse files Browse the repository at this point in the history
  • Loading branch information
Migala committed Jan 22, 2017
1 parent dac8275 commit fce372b
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 @@ -182,7 +182,7 @@ public void loop() {
rightClaw.setPower(-gamepad2.left_trigger);
}
*/

/* claw controls
if (gamepad2.dpad_up){
leftClaw.setPower(1);
rightClaw.setPower(1);
Expand All @@ -195,6 +195,7 @@ public void loop() {
leftClaw.setPower(0);
rightClaw.setPower(0);
}
*/
}


Expand Down

0 comments on commit fce372b

Please sign in to comment.