From: Shaina Chen Date: Fri, 5 Feb 2016 04:46:05 +0000 (-0800) Subject: change getCurrentSetPoint in changeSpeed method to getSpeed X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=92d4c21a86e03328bd4e9e28b667911a874aa13c change getCurrentSetPoint in changeSpeed method to getSpeed --- diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java index 26763d0e..64efa158 100755 --- a/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java @@ -67,7 +67,7 @@ public class Shooter extends Subsystem { // Use negative # for decrement. Positive for increment. public void changeSpeed(double change) { - double newSpeed = getCurrentSetPoint() + change; + double newSpeed = getSpeed() + change; setSpeed(newSpeed); }