package org.usfirst.frc4909.STEAMWORKS.commands;

import org.usfirst.frc4909.STEAMWORKS.Robot;

import edu.wpi.first.wpilibj.command.Command;

public class StopShooting extends Command {

    public StopShooting() {
    	requires(Robot.feeder);
    	requires(Robot.shooter);
    }

    protected void initialize() {
    	Robot.feeder.stopFeed();
    }

    protected void execute() {}

    protected boolean isFinished() {
        return true;
    }

    protected void end() {}

    protected void interrupted() {}
}
package org.usfirst.frc4909.STEAMWORKS.commands;

import org.usfirst.frc4909.STEAMWORKS.Robot;

import edu.wpi.first.wpilibj.command.InstantCommand;

public class StopShooting extends InstantCommand {

    public StopShooting() {
    	requires(Robot.feeder);
    	requires(Robot.shooter);
    }

    protected void initialize() {
    	Robot.feeder.stopFeed();
    }
}
Convert Stop Shooting to Instant Command
Convert Stop Shooting to Instant Command
