From: shainachen Date: Tue, 17 Jan 2017 03:33:01 +0000 (-0800) Subject: Edit JavaDoc comments in two methods X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=89a76b334a8120e5a5000a5eab6b76f7f4ae31c0 Edit JavaDoc comments in two methods --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java index edb926e..646dc56 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java @@ -3,9 +3,10 @@ package org.usfirst.frc.team3501.robot.commands.shooter; import edu.wpi.first.wpilibj.command.Command; /** - * Runs fly wheel continuously when corresponding button pressed + * This command will run the fly wheel motor continuously until the button + * triggering it is released. * - * Run stopFlyWheel command to stop + * pre-condition: This command must be run by a button in OI. * * @param motorVal * [-1,1] @@ -37,6 +38,7 @@ public class RunFlyWheelContinuous extends Command { // subsystems is scheduled to run @Override protected void interrupted() { + end(); } @Override diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java index 161f7b6..f4b0693 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java @@ -3,10 +3,11 @@ package org.usfirst.frc.team3501.robot.commands.shooter; import edu.wpi.first.wpilibj.command.Command; /** - * Runs index wheel continuously when corresponding button is pressed - * - * Run stopIndexWheel to stop + * This command will run the index wheel motor continuously until the button + * triggering it is released. * + * pre-condition: This command must be run by a button in OI. + * * @param motorVal * [-1,1] * @author shaina