Commit | Line | Data |
---|---|---|
aa770db6 MW |
1 | package org.usfirst.frc.team3501.robot.commandgroups; |
2 | ||
3 | import org.usfirst.frc.team3501.robot.Constants; | |
4 | import org.usfirst.frc.team3501.robot.commands.driving.DriveDistance; | |
5 | import org.usfirst.frc.team3501.robot.commands.driving.TurnForAngle; | |
2fb7ee9c | 6 | import org.usfirst.frc.team3501.robot.commands.shooter.RunFlyWheelContinuous; |
aa770db6 MW |
7 | |
8 | import 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 | */ |
14 | public class AutonHopperShoot extends CommandGroup { | |
15 | ||
f2fe3ff5 | 16 | public AutonHopperShoot() { |
aa770db6 | 17 | // Robot drives from center to front of airship |
fc018538 | 18 | addSequential(new DriveDistance(94.75, 0.75)); |
aa770db6 | 19 | // Robot turns towards hopper |
fc018538 | 20 | addSequential(new TurnForAngle(90.0, Constants.Direction.RIGHT, 1.0)); |
47ff9a73 | 21 | // Robot drives into hopper switch |
fc018538 | 22 | addSequential(new DriveDistance(44.0, 1)); |
aa770db6 | 23 | // Robot backs up from switch |
fc018538 | 24 | addSequential(new DriveDistance(5.0, -1.0)); |
aa770db6 | 25 | // Robot turns towards the boiler |
2fb7ee9c | 26 | addSequential(new TurnForAngle(90.0, Constants.Direction.RIGHT, 1.0)); |
aa770db6 | 27 | // Robot drives to boiler |
fc018538 | 28 | addSequential(new DriveDistance(75.7, 0.75)); |
aa770db6 | 29 | // Robot turns parallel to boiler |
fc018538 | 30 | addSequential(new TurnForAngle(46.6, Constants.Direction.LEFT, 1.0)); |
aa770db6 | 31 | // Shoot |
47ff9a73 | 32 | addSequential(new RunFlyWheelContinuous()); |
aa770db6 MW |
33 | |
34 | } | |
35 | } |