From 39c9eca8d36dc1dc18f7c1528bc4506e2924281f Mon Sep 17 00:00:00 2001 From: Shaina Chen Date: Wed, 10 Feb 2016 20:14:48 -0800 Subject: [PATCH] change input variable from targetPosition to level --- .../usfirst/frc/team3501/robot/commands/SetHandToLevel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2