Commit | Line | Data |
---|---|---|
d24e8611 LH |
1 | package org.usfirst.frc.team3501.robot.commands; |
2 | ||
5b3b1652 LH |
3 | import org.usfirst.frc.team3501.bases.Command; |
4 | ||
b2640783 | 5 | public class ToggleClaw extends Command { |
d24e8611 LH |
6 | |
7 | public ToggleClaw() { | |
8 | super("ToggleClaw"); | |
9 | requires(claw); | |
10 | } | |
11 | ||
12 | protected void initialize() { | |
13 | if (claw.isOpen()) | |
14 | schedule(new CloseClaw()); | |
15 | else | |
16 | schedule(new OpenClaw()); | |
17 | } | |
18 | ||
19 | protected boolean isFinished() { | |
20 | return true; | |
21 | } | |
22 | } |