fix conflicts
[3501/2015-FRC-Spark] / src / org / usfirst / frc3501 / RiceCatRobot / commands / CloseClaw.java
1 package org.usfirst.frc3501.RiceCatRobot.commands;
2
3 import edu.wpi.first.wpilibj.command.Command;
4
5 import org.usfirst.frc3501.RiceCatRobot.robot.Robot;
6
7 /**
8 *
9 */
10 public class CloseClaw extends Command {
11
12 public CloseClaw() {
13 requires(Robot.claw);
14 }
15
16 protected void initialize() {
17 System.out.println("IN INIT CLOSECLAW");
18 }
19
20 protected void execute() {
21 Robot.claw.closeClaw();
22 System.out.println("Closing claw");
23 }
24
25 protected boolean isFinished() {
26 System.out.println("Claw Closed");
27 return !Robot.claw.isOpen();
28 }
29
30 protected void end() {
31
32 }
33
34 protected void interrupted() {
35 }
36 }