Specify units of cm in comment for lidar getDistance() method and fix redundancy...
authorEvanYap <evanyap.14@gmail.com>
Mon, 15 Feb 2016 21:44:30 +0000 (13:44 -0800)
committerEvanYap <evanyap.14@gmail.com>
Mon, 15 Feb 2016 21:44:30 +0000 (13:44 -0800)
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() {