Minor fixes after merging
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / intakearm / Photogate.java
index aff5fc2d623a2b2a6ee5a2003f49c34d34e87df8..bf0c7b07fb88da5363e331b0c4ff511382e316dd 100644 (file)
@@ -7,7 +7,7 @@ import edu.wpi.first.wpilibj.AnalogInput;
  * reflective method to sense the presence of the boulder within the robot's
  * shooting chamber. This class specifically checks for the ball's presence
  * using a threshold of voltages outputted from the phototransistor.
- *
+ * 
  * @author niyatisriram
  */
 public class Photogate extends AnalogInput {
@@ -17,22 +17,19 @@ public class Photogate extends AnalogInput {
 
   /***
    * The constructor inputs the channel of the transistor and the threshold
-   * value.
-   * The threshold is a specific value, representing the outputted voltage of
-   * the phototransistor. This value will be somewhere within the range [0,
-   * 4095] Find the value by testing and finding an average value for which the
-   * ball is present when the output is greater, and absent when the output is
-   * less.
+   * value. The threshold is a specific value, representing the outputted
+   * voltage of the phototransistor. This value will be somewhere within the
+   * range [0, 4095] Find the value by testing and finding an average value for
+   * which the ball is present when the output is greater, and absent when the
+   * output is less.
    */
   public Photogate() {
     super(0);
-    this.threshold = threshold;
-
   }
 
   /***
-   * @return whether the ball is present or not
-   *         USE TO DECIDE WHEN OUTTAKE NEEDS TO HAPPEN FOR BALL TO BE SECURE
+   * @return whether the ball is present or not USE TO DECIDE WHEN OUTTAKE NEEDS
+   *         TO HAPPEN FOR BALL TO BE SECURE
    */
   public boolean isBallPresent() {
     if (this.getVoltage() > threshold) {