X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fdriving%2FToggleCompressor.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fdriving%2FToggleCompressor.java;h=f78acb25bb1adf7969be43a52a83183255ef604f;hp=0000000000000000000000000000000000000000;hb=13eda6855c76fed9ed693e08b62a0424b92c2c12;hpb=ee82dd56da8889e008eb1a09aa8b8e016a59fd72 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 index 00000000..f78acb25 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/ToggleCompressor.java @@ -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(); + } +}