delete setRollerVoltage method, add javadoc style comment for intakeBall and outputBa...
authorShaina Chen <shaina.sierra@gmail.com>
Fri, 5 Feb 2016 04:06:34 +0000 (20:06 -0800)
committerShaina Chen <shaina.sierra@gmail.com>
Fri, 5 Feb 2016 04:21:48 +0000 (20:21 -0800)
src/org/usfirst/frc/team3501/robot/subsystems/IntakeArm.java

index 16517904d49b8108592aec97edf26dc17a1d1dad..3fa5d3e9e956daace2d96f3c18ead2a6fec82dda 100755 (executable)
@@ -36,6 +36,10 @@ public class IntakeArm extends Subsystem {
    * Must be used in a command that has a timer variable to stop it.
    */
 
+  /***
+   * These two methods (intakeBall and outputBall)sets the voltage of the motor.
+   * The voltage values are constants in Constants class
+   */
   public void intakeBall() {
     intakeRoller.set(Constants.IntakeArm.INTAKE_SPEED);
   }
@@ -44,21 +48,6 @@ public class IntakeArm extends Subsystem {
     intakeRoller.set(Constants.IntakeArm.OUTPUT_SPEED);
   }
 
-  /***
-   * This method allows you to set the voltage of the motor. The range of
-   * voltage is from [-1, 1]. A negative voltage makes the motor run backwards.
-   *
-   * @param voltage
-   *          The voltage of the motors that control the rollers. The range of
-   *          these motors go from [-1,1]. A negative voltage makes the motor
-   *          run
-   *          backwards.
-   */
-
-  public void setRollerVoltage(double voltage) {
-
-  }
-
   /***
    * This method gets you the current voltage of the motor that controls the
    * intake arm. The range of voltage is from [-1,1].
@@ -70,7 +59,7 @@ public class IntakeArm extends Subsystem {
    */
 
   public double getRollerVoltage() {
-    return 0;
+    return intakeRoller.get();
   }
 
   /***