From: shainachen Date: Sat, 14 Jan 2017 21:19:03 +0000 (-0800) Subject: Edit JavaDoc comment, instantiate motorVal and time variables X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=493a4f872b44e13c742fcbde002064298c13368b Edit JavaDoc comment, instantiate motorVal and time variables --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheel.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheel.java index 0ab2e4a..5a60707 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheel.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheel.java @@ -3,43 +3,47 @@ package org.usfirst.frc.team3501.robot.commands.shooter; import edu.wpi.first.wpilibj.command.Command; /** - * Runs the fly wheel at a given speed in () for input time in seconds + * Runs the fly wheel at a given speed for a given time (sec) * - * @param speed - * in () + * @param motorVal + * in () * @param time - * in seconds + * in seconds + * @author shaina */ public class RunFlyWheel extends Command { - public RunFlyWheel() { - - } - - // 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 motorVal; + private double time; + + public RunFlyWheel(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; + } }