From 915269db9e316cc63ea98058708153411063c719 Mon Sep 17 00:00:00 2001 From: Shaina Chen Date: Thu, 11 Feb 2016 18:53:19 -0800 Subject: [PATCH] change name of command to SetArmToAngle --- .../frc/team3501/robot/commands/RetractDefenseArm.java | 2 +- .../robot/commands/{SetArmToLevel.java => SetArmToAngle.java} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/org/usfirst/frc/team3501/robot/commands/{SetArmToLevel.java => SetArmToAngle.java} (91%) diff --git a/src/org/usfirst/frc/team3501/robot/commands/RetractDefenseArm.java b/src/org/usfirst/frc/team3501/robot/commands/RetractDefenseArm.java index a073fa83..a3cb6d45 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/RetractDefenseArm.java +++ b/src/org/usfirst/frc/team3501/robot/commands/RetractDefenseArm.java @@ -9,7 +9,7 @@ public class RetractDefenseArm extends CommandGroup { public RetractDefenseArm(double speed, double retractPosition) { requires(Robot.defenseArm); - addParallel(new SetArmToLevel(speed, retractPosition)); + addParallel(new SetArmToAngle(speed, retractPosition)); addParallel(new SetHandToLevel(speed, retractPosition)); } } diff --git a/src/org/usfirst/frc/team3501/robot/commands/SetArmToLevel.java b/src/org/usfirst/frc/team3501/robot/commands/SetArmToAngle.java similarity index 91% rename from src/org/usfirst/frc/team3501/robot/commands/SetArmToLevel.java rename to src/org/usfirst/frc/team3501/robot/commands/SetArmToAngle.java index 7716629f..02d6e827 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/SetArmToLevel.java +++ b/src/org/usfirst/frc/team3501/robot/commands/SetArmToAngle.java @@ -4,14 +4,14 @@ import org.usfirst.frc.team3501.robot.Robot; import edu.wpi.first.wpilibj.command.Command; -public class SetArmToLevel extends Command { +public class SetArmToAngle extends Command { private static final double THRESHOLD = 0.1; private double speed; private double targetPosition; private double currentPosition; private boolean isDecreasing = false; - public SetArmToLevel(double speed, double targetPosition) { + public SetArmToAngle(double speed, double targetPosition) { requires(Robot.defenseArm); this.speed = speed; -- 2.30.2