From: Michael Wang Date: Thu, 19 Jan 2017 05:02:04 +0000 (-0800) Subject: Add definition for numbers and add description X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=f2fe3ff51d50129d53fe6589945486730d4349bd Add definition for numbers and add description --- diff --git a/src/org/usfirst/frc/team3501/robot/commandgroups/AutonHopperShoot.java b/src/org/usfirst/frc/team3501/robot/commandgroups/AutonHopperShoot.java index 94dfb9e..2083548 100644 --- a/src/org/usfirst/frc/team3501/robot/commandgroups/AutonHopperShoot.java +++ b/src/org/usfirst/frc/team3501/robot/commandgroups/AutonHopperShoot.java @@ -8,18 +8,20 @@ import org.usfirst.frc.team3501.robot.commands.shooter.RunFlyWheelContinuous; import edu.wpi.first.wpilibj.command.CommandGroup; /** - * + * // Robot starts in middle, goes to the hopper, then boiler,then shoots during + * auton */ public class AutonHopperShoot extends CommandGroup { - public AutonHopperShoot() { + private static final double DISTANCE_TO_HOPPER = 224.569677; + public AutonHopperShoot() { // Robot drives from center to front of airship addSequential(new DriveDistance(5.0, 1)); // Robot turns towards hopper addSequential(new TurnForAngle(45.0, Constants.Direction.RIGHT, 1.0)); // Robot drives near hopper - addSequential(new DriveDistance(224.569677, 1)); + addSequential(new DriveDistance(DISTANCE_TO_HOPPER, 1)); // Robot turns left towards hopper addSequential(new TurnForAngle(45.0, Constants.Direction.RIGHT, 1.0)); // Robot drives in front of hopper