Add forgetten things from previous commit. Fix this
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / driving / ToggleCompressor.java
diff --git a/src/org/usfirst/frc/team3501/robot/commands/driving/ToggleCompressor.java b/src/org/usfirst/frc/team3501/robot/commands/driving/ToggleCompressor.java
new file mode 100644 (file)
index 0000000..f78acb2
--- /dev/null
@@ -0,0 +1,38 @@
+package org.usfirst.frc.team3501.robot.commands.driving;
+
+import org.usfirst.frc.team3501.robot.Robot;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ *
+ */
+public class ToggleCompressor extends Command {
+
+  public ToggleCompressor() {
+
+  }
+
+  @Override
+  protected void initialize() {
+    Robot.driveTrain.toggleCompressor();
+  }
+
+  @Override
+  protected void execute() {
+  }
+
+  @Override
+  protected boolean isFinished() {
+    return true;
+  }
+
+  @Override
+  protected void end() {
+  }
+
+  @Override
+  protected void interrupted() {
+    end();
+  }
+}