add 3 method stubs- setRollerSpeeds, getRollerSpeeds, and areRollersRolling
authorYamini Adusumelli <ayamini2000@gmail.com>
Sat, 30 Jan 2016 18:46:38 +0000 (10:46 -0800)
committerShaina Chen <shaina.sierra@gmail.com>
Fri, 5 Feb 2016 04:20:59 +0000 (20:20 -0800)
src/org/usfirst/frc/team3501/robot/subsystems/IntakeArm.java

index 630ad151c270419e10c60970e1e504c94c23ea92..153743e0878d833814f1d8b90e3356c9ecec4cd2 100755 (executable)
@@ -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() {