Add definition for numbers and add description
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commandgroups / AutonHopperShoot.java
CommitLineData
aa770db6
MW
1package org.usfirst.frc.team3501.robot.commandgroups;
2
3import org.usfirst.frc.team3501.robot.Constants;
4import org.usfirst.frc.team3501.robot.commands.driving.DriveDistance;
5import org.usfirst.frc.team3501.robot.commands.driving.TurnForAngle;
2fb7ee9c 6import org.usfirst.frc.team3501.robot.commands.shooter.RunFlyWheelContinuous;
aa770db6
MW
7
8import edu.wpi.first.wpilibj.command.CommandGroup;
9
10/**
f2fe3ff5
MW
11 * // Robot starts in middle, goes to the hopper, then boiler,then shoots during
12 * auton
aa770db6
MW
13 */
14public class AutonHopperShoot extends CommandGroup {
15
f2fe3ff5 16 private static final double DISTANCE_TO_HOPPER = 224.569677;
aa770db6 17
f2fe3ff5 18 public AutonHopperShoot() {
aa770db6 19 // Robot drives from center to front of airship
82696d5c 20 addSequential(new DriveDistance(5.0, 1));
aa770db6 21 // Robot turns towards hopper
82696d5c 22 addSequential(new TurnForAngle(45.0, Constants.Direction.RIGHT, 1.0));
aa770db6 23 // Robot drives near hopper
f2fe3ff5 24 addSequential(new DriveDistance(DISTANCE_TO_HOPPER, 1));
aa770db6 25 // Robot turns left towards hopper
82696d5c 26 addSequential(new TurnForAngle(45.0, Constants.Direction.RIGHT, 1.0));
aa770db6 27 // Robot drives in front of hopper
2fb7ee9c 28 addSequential(new DriveDistance(2.0, 1.0));
aa770db6 29 // Robot backs up from switch
2fb7ee9c 30 addSequential(new DriveDistance(2.0, -1.0));
aa770db6 31 // Robot turns towards the boiler
2fb7ee9c 32 addSequential(new TurnForAngle(90.0, Constants.Direction.RIGHT, 1.0));
aa770db6 33 // Robot drives to boiler
2fb7ee9c 34 addSequential(new DriveDistance(123.3, 1.0));
aa770db6 35 // Robot turns parallel to boiler
2fb7ee9c 36 addSequential(new TurnForAngle(45.0, Constants.Direction.LEFT, 1.0));
aa770db6 37 // Shoot
2fb7ee9c 38 addSequential(new RunFlyWheelContinuous(1.0));
aa770db6
MW
39
40 }
41}