X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FShooter.java;h=d91b234192218906cb44e1847f22666af90b913b;hb=984e903a0a4e91563d7b7766a361aaeed15a2b23;hp=0264c7578e5f34afb6ce0bdfea7abaab0a36fdec;hpb=93453536a87a1f0decf9a88ab00f77438097b5a7;p=3501%2Fstronghold-2016 diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java index 0264c757..d91b2341 100755 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java @@ -65,6 +65,12 @@ public class Shooter extends Subsystem { return encoder.getRate(); } + public double getShooterSpeed() { + double distanceToGoal = lidar.getDistance(); + double shooterSpeed = distanceToGoal; // Function to be determined + return shooterSpeed; + } + // Use negative # for decrement. Positive for increment. public void changeSpeed(double change) {