From b4c621e55a5c8ee0bebd48b980a1b8defa2ecdf5 Mon Sep 17 00:00:00 2001 From: Lauren Meier Date: Sat, 13 Feb 2016 14:58:14 -0800 Subject: [PATCH] add javadoc style comments to ToggleBall commands --- .../robot/commands/ToggleBallRollerExpel.java | 11 ++++++++++- .../robot/commands/ToggleBallRollerIntake.java | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerExpel.java b/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerExpel.java index 06049821..70a1dc94 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerExpel.java +++ b/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerExpel.java @@ -2,11 +2,20 @@ package org.usfirst.frc.team3501.robot.commands; import org.usfirst.frc.team3501.robot.Robot; +/*** + * This command will continually roll the rollers of the intake arm in the + * outwards direction and stop the rollers once the command is canceled. + * + * pre-condition: This command must be called by a button with the method .whileHeld() in OI + * + * @author Lauren and Niyati + * + */ + import edu.wpi.first.wpilibj.command.Command; public class ToggleBallRollerExpel extends Command { - // Must be called with whileHeld in oi public ToggleBallRollerExpel() { requires(Robot.intakeArm); } diff --git a/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerIntake.java b/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerIntake.java index 8a2caada..8299bf60 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerIntake.java +++ b/src/org/usfirst/frc/team3501/robot/commands/ToggleBallRollerIntake.java @@ -2,11 +2,20 @@ package org.usfirst.frc.team3501.robot.commands; import org.usfirst.frc.team3501.robot.Robot; +/*** + * This command will continually roll the rollers of the intake arm in the + * inwards direction and stop the rollers once the command is canceled. + * + * pre-condition: This command must be called by a button with the method .whileHeld() in OI + * + * @author Lauren and Niyati + * + */ + import edu.wpi.first.wpilibj.command.Command; public class ToggleBallRollerIntake extends Command { - // Must be called with whileHeld in oi public ToggleBallRollerIntake() { requires(Robot.intakeArm); } -- 2.30.2