From 984e903a0a4e91563d7b7766a361aaeed15a2b23 Mon Sep 17 00:00:00 2001 From: Shaina Chen Date: Tue, 16 Feb 2016 12:40:56 -0800 Subject: [PATCH] create and fill getShooterSpeed --- src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- 2.30.2