From 196ccee03d32dc7e37d1d55315371928f1802b84 Mon Sep 17 00:00:00 2001 From: Michael Wang Date: Wed, 18 Jan 2017 21:09:48 -0800 Subject: [PATCH] Add DISTANCE_TO_TURNING_POINT to AutonHopperShoot --- .../frc/team3501/robot/commandgroups/AutonHopperShoot.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/usfirst/frc/team3501/robot/commandgroups/AutonHopperShoot.java b/src/org/usfirst/frc/team3501/robot/commandgroups/AutonHopperShoot.java index 2083548..b5e7b95 100644 --- a/src/org/usfirst/frc/team3501/robot/commandgroups/AutonHopperShoot.java +++ b/src/org/usfirst/frc/team3501/robot/commandgroups/AutonHopperShoot.java @@ -14,10 +14,11 @@ import edu.wpi.first.wpilibj.command.CommandGroup; public class AutonHopperShoot extends CommandGroup { private static final double DISTANCE_TO_HOPPER = 224.569677; + private static final double DISTANCE_TO_TURNING_POSITION = 5.0; public AutonHopperShoot() { // Robot drives from center to front of airship - addSequential(new DriveDistance(5.0, 1)); + addSequential(new DriveDistance(DISTANCE_TO_TURNING_POSITION, 1)); // Robot turns towards hopper addSequential(new TurnForAngle(45.0, Constants.Direction.RIGHT, 1.0)); // Robot drives near hopper -- 2.30.2