X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FRunIndexWheel.java;h=6804c255b781c67c0609f9615a9eb6e921f61274;hb=db563572154ac55dff3d7bd777025ba3ff8ff261;hp=8814b2ce6ae2fb106bd4c6d194d13d519f3f3d74;hpb=05a85c826dc9e393184e275264b70caef5b7676a;p=3501%2F2017steamworks diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java index 8814b2c..6804c25 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java @@ -3,43 +3,50 @@ package org.usfirst.frc.team3501.robot.commands.shooter; import edu.wpi.first.wpilibj.command.Command; /** - * Runs index wheel at a given speed in () for input time in seconds + * This command runs index wheel at a given speed for given time in seconds. * - * @param speed - * in () + * pre-condition: fly wheel is running at full speed to prepare for shooting + * fuel + * + * @param motorVal + * value range is from -1 to 1 * @param time - * in seconds + * in seconds + * @author Shaina */ public class RunIndexWheel extends Command { - public RunIndexWheel() { - - } - - // Called just before this Command runs the first time - @Override - protected void initialize() { - } - - // Called repeatedly when this Command is scheduled to run - @Override - protected void execute() { - } - - // Called once after isFinished returns true - @Override - protected void end() { - } - - // Called when another command which requires one or more of the same - // subsystems is scheduled to run - @Override - protected void interrupted() { - } - - @Override - protected boolean isFinished() { - // TODO Auto-generated method stub - return false; - } + private double time; + private double motorVal; + + public RunIndexWheel(double motorVal, double time) { + this.motorVal = motorVal; + this.time = time; + } + + // Called just before this Command runs the first time + @Override + protected void initialize() { + } + + // Called repeatedly when this Command is scheduled to run + @Override + protected void execute() { + } + + // Called once after isFinished returns true + @Override + protected void end() { + } + + // Called when another command which requires one or more of the same + // subsystems is scheduled to run + @Override + protected void interrupted() { + } + + @Override + protected boolean isFinished() { + return false; + } }