From: Yamini Adusumelli Date: Sat, 30 Jan 2016 18:46:38 +0000 (-0800) Subject: add 3 method stubs- setRollerSpeeds, getRollerSpeeds, and areRollersRolling X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=08d3b5a4caf95785fc4be46f19318ebed30ba397 add 3 method stubs- setRollerSpeeds, getRollerSpeeds, and areRollersRolling --- diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/IntakeArm.java b/src/org/usfirst/frc/team3501/robot/subsystems/IntakeArm.java index 630ad151..153743e0 100755 --- a/src/org/usfirst/frc/team3501/robot/subsystems/IntakeArm.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/IntakeArm.java @@ -35,13 +35,14 @@ public class IntakeArm extends Subsystem { } /*** - * This method allows you to set the speed of the motor(s). The range of speed - * is from [-1, 1]. A negative speed changes the direction of the motors. - * + * This method allows you to set the speed of the motor. The range of speed + * is from [-1, 1]. A negative speed changes the direction of the motors, + * making it run backwards. + * * @param speed * The speed of the motors that control the rollers. The range of * these motors go from [-1,1]. A negative speed changes the - * direction of the motors. + * direction of the motors, making it run backwards. */ public void setRollerSpeed(double speed) { @@ -49,8 +50,13 @@ public class IntakeArm extends Subsystem { } /*** + * This method gets you the current speed of the motor that controls the + * motor. The range of speed is from [-1,1]. A negative speed changes the + * direction of the motor, making it run backwards. * - * @return + * @return Returns the speed of the motor that controls the roller. The range + * of the motor goes from [-1,1]. A negative speed changes the + * direction of the motor, making it go backwards. */ public double getRollerSpeed() { @@ -58,17 +64,11 @@ public class IntakeArm extends Subsystem { } /*** + * This method checks to see if the motors controlling the rollers are + * currently working. * - * @return - */ - - public boolean isBallInside() { - return true; - } - - /*** - * - * @return + * @return Returns whether the motors are currently running, and returns the + * state of the condition (true or false). */ public boolean areRollersRolling() {