Specify units of cm in comment for lidar getDistance() method and fix redundancy...
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / subsystems / Shooter.java
index f164ddfae39c6b623976bf9c1bf65ffc285d957b..3b91bfe03c451333cdcdd8ef2035071b71a6af3a 100755 (executable)
@@ -57,10 +57,10 @@ public class Shooter extends Subsystem {
   }
 
   // This getDistance() will return the distance using the lidar from the
-  // desired target during match.
+  // desired target during match. This distance is returned in units of
+  // CENTIMETERS.
   public double getDistance() {
-    double distance = lidar.getDistance();
-    return distance;
+    return lidar.getDistance();
   }
 
   public void stop() {