for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
package org.usfirst.frc.team3695.robot.commands;
import org.usfirst.frc.team3695.robot.Constants;
import org.usfirst.frc.team3695.robot.Robot;
import org.usfirst.frc.team3695.robot.enumeration.Direction;
import org.usfirst.frc.team3695.robot.util.Util;
import edu.wpi.first.wpilibj.command.Command;
/**
* Commands the gear flaps
*/
public class ButtonCommandSpit extends Command {
Direction direction;
public ButtonCommandSpit() {
requires(Robot.SUB_MANIPULATOR);
}
protected void initialize() {
Robot.SUB_MANIPULATOR.spit(Util.getAndSetDouble("Spinning Speed", Constants.SPINNY_SPEED));
protected void execute() {}
protected boolean isFinished() {
return false;
protected void end() {
Robot.SUB_MANIPULATOR.stopSpinning();
protected void interrupted() {
end();