From: Shaina Chen Date: Thu, 11 Feb 2016 04:14:48 +0000 (-0800) Subject: change input variable from targetPosition to level X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=39c9eca8d36dc1dc18f7c1528bc4506e2924281f change input variable from targetPosition to level --- diff --git a/src/org/usfirst/frc/team3501/robot/commands/SetHandToLevel.java b/src/org/usfirst/frc/team3501/robot/commands/SetHandToLevel.java index dd428974..11aae28a 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/SetHandToLevel.java +++ b/src/org/usfirst/frc/team3501/robot/commands/SetHandToLevel.java @@ -11,11 +11,11 @@ public class SetHandToLevel extends Command { private double currentPosition; private boolean isDecreasing = false; - public SetHandToLevel(double speed, double targetPosition) { + public SetHandToLevel(double speed, int level) { requires(Robot.defenseArm); this.speed = speed; - this.targetPosition = targetPosition; + this.targetPosition = Robot.defenseArm.getAngleForLocation(level); } @Override