From c0860df7686073da86c6021170b168b5101e00a5 Mon Sep 17 00:00:00 2001 From: shainachen Date: Sat, 14 Jan 2017 12:04:42 -0800 Subject: [PATCH] Edit JavaDoc comment, instantiate motorVal and time variable --- .../robot/commands/shooter/RunIndexWheel.java | 70 ++++++++++--------- 1 file changed, 37 insertions(+), 33 deletions(-) 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..5cb3ada 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,47 @@ 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 + * Runs index wheel at a given speed in () for given time in seconds * * @param speed - * in () + * in () * @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; + } } -- 2.30.2