From 89a76b334a8120e5a5000a5eab6b76f7f4ae31c0 Mon Sep 17 00:00:00 2001 From: shainachen Date: Mon, 16 Jan 2017 19:33:01 -0800 Subject: [PATCH] Edit JavaDoc comments in two methods --- .../robot/commands/shooter/RunFlyWheelContinuous.java | 6 ++++-- .../robot/commands/shooter/RunIndexWheelContinuous.java | 7 ++++--- 2 files changed, 8 insertions(+), 5 deletions(-) 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 -- 2.30.2