change location of base files
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / commands / ToggleClaw.java
1 package org.usfirst.frc.team3501.robot.commands;
2
3 import org.usfirst.frc.team3501.bases.Command;
4
5 public class ToggleClaw extends Command {
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 }