package org.usfirst.frc.team3501.robot.commands.shooter;
import org.usfirst.frc.team3501.robot.Robot;
+import org.usfirst.frc.team3501.robot.subsystems.Shooter;
import edu.wpi.first.wpilibj.command.Command;
* @author Shaina
*/
public class RunFlyWheelContinuous extends Command {
- private double motorVal;
+ private Shooter shooter = Robot.getShooter();
/**
* See JavaDoc comment in class for details
* @param motorVal
* value range from -1 to 1
*/
- public RunFlyWheelContinuous(double motorVal) {
- this.motorVal = motorVal;
+ public RunFlyWheelContinuous() {
+ requires(shooter);
}
// Called just before this Command runs the first time
@Override
protected void initialize() {
- Robot.getShooter().setFlyWheelMotorVal(motorVal);
}
// Called repeatedly when this Command is scheduled to run
@Override
protected void execute() {
+ shooter.setFlyWheelMotorVal(shooter.CURRENT_SHOOTING_SPEED);
}
// Called once after isFinished returns true
@Override
protected boolean isFinished() {
-<<<<<<< 7fe535d58b388a1d87b3728095d8a38786865468
return false;
-=======
- // TODO
- return !Robot.getOI().toggleFlyWheel.get();
->>>>>>> Add buttons to OI class
}
}