From: Kevin Zhang Date: Wed, 17 Feb 2016 18:37:21 +0000 (-0800) Subject: Add comment explain get Shooter Speed() X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=29697d89931827a9f5cbdb50c6bee3513ef4ebba Add comment explain get Shooter Speed() --- diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java index d91b2341..a9e8d6e8 100755 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java @@ -65,6 +65,11 @@ public class Shooter extends Subsystem { return encoder.getRate(); } + /* + * We are going to map a lidar distance to a shooter speed that will be set to + * the shooter. This function does not yet exist so we will just use y=x but + * when testing commences we shall create the function + */ public double getShooterSpeed() { double distanceToGoal = lidar.getDistance(); double shooterSpeed = distanceToGoal; // Function to be determined