Commit | Line | Data |
---|---|---|
f11ce98e KZ |
1 | package org.usfirst.frc3501.RiceCatRobot.commands; |
2 | ||
3 | import edu.wpi.first.wpilibj.command.Command; | |
4 | ||
4b8a525f | 5 | import org.usfirst.frc3501.RiceCatRobot.robot.Robot; |
f11ce98e KZ |
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 | } |