Commit | Line | Data |
---|---|---|
f11ce98e KZ |
1 | package org.usfirst.frc3501.RiceCatRobot.commands; |
2 | ||
3 | import edu.wpi.first.wpilibj.command.Command; | |
4 | ||
5 | import org.usfirst.frc3501.RiceCatRobot.Robot; | |
6 | ||
7 | /** | |
8 | * Opens claw by reversing solenoids. | |
9 | * | |
10 | */ | |
11 | public class OpenClaw extends Command { | |
12 | ||
13 | public OpenClaw() { | |
14 | requires(Robot.claw); | |
15 | } | |
16 | ||
17 | protected void initialize() { | |
18 | System.out.println("IN INIT OPENCLAW"); | |
19 | } | |
20 | ||
21 | protected void execute() { | |
22 | Robot.claw.openClaw(); | |
23 | System.out.println("Opening Claw"); | |
24 | } | |
25 | ||
26 | protected boolean isFinished() { | |
27 | System.out.println("Claw Opened"); | |
28 | return Robot.claw.isOpen(); | |
29 | } | |
30 | ||
31 | protected void end() { | |
32 | ||
33 | } | |
34 | ||
35 | protected void interrupted() { | |
36 | } | |
37 | } |