for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
package org.usfirst.frc.team3695.robot.commands;
import edu.wpi.first.wpilibj.command.Command;
import org.usfirst.frc.team3695.robot.Robot;
/**
* Code that kills compressor until interruption
*/
public class ToggleCommandKillCompressor extends Command {
public ToggleCommandKillCompressor() {
requires(Robot.SUB_COMPRESSOR);
}
protected void initialize() {
Robot.SUB_COMPRESSOR.setState(false);
protected void execute() {}
protected boolean isFinished() {
return false;
protected void end() {
Robot.SUB_COMPRESSOR.setState(true);
protected void interrupted() {
end();