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