add constants same format as meryem did to constants and also add time dead reckoning
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / DefaultAutonStrategy.java
CommitLineData
6bb7f8ac 1package org.usfirst.frc.team3501.robot.commands.auton;
78d476cc 2
20cb908e 3import org.usfirst.frc.team3501.robot.Constants;
dd794a4e 4import org.usfirst.frc.team3501.robot.Constants.Defense;
6bb7f8ac 5import org.usfirst.frc.team3501.robot.commands.shooter.Shoot;
dd794a4e 6
78d476cc 7import edu.wpi.first.wpilibj.command.CommandGroup;
9728080f 8import edu.wpi.first.wpilibj.command.WaitCommand;
78d476cc
ME
9
10/**
53d61b3e
ME
11 * The default autonomous strategy involves passing the defense that is in front
12 * of it, aiming the robot/ shooter towards the goal, and shooting.
78d476cc 13 */
e4f7b3a7 14
d607dcbb 15public class DefaultAutonStrategy extends CommandGroup {
ab237853 16
dd794a4e 17 public DefaultAutonStrategy(int position, Defense defense) {
78d476cc 18
20cb908e 19 if (defense == Constants.Defense.PORTCULLIS)
3c259ed2 20 addSequential(new LiftPortcullis());
ab237853 21
20cb908e 22 else if (defense == Constants.Defense.SALLY_PORT)
86e1c4cc 23 addSequential(new PassSallyPort());
ab237853 24
20cb908e 25 else if (defense == Constants.Defense.ROUGH_TERRAIN)
dba0b9ad 26 addSequential(new PassRoughTerrain());
3c259ed2 27
20cb908e 28 else if (defense == Constants.Defense.LOW_BAR)
dba0b9ad 29 addSequential(new PassLowBar());
3c259ed2 30
20cb908e 31 else if (defense == Constants.Defense.CHEVAL_DE_FRISE)
af236b4e 32 addSequential(new PassChevalDeFrise());
3c259ed2 33
20cb908e 34 else if (defense == Constants.Defense.DRAWBRIDGE)
227fd1b1 35 addSequential(new PassDrawBridge());
3c259ed2 36
20cb908e 37 else if (defense == Constants.Defense.MOAT)
dba0b9ad 38 addSequential(new PassMoat());
3c259ed2 39
20cb908e 40 else if (defense == Constants.Defense.ROCK_WALL)
dba0b9ad 41 addSequential(new PassRockWall());
3c259ed2 42
20cb908e 43 else if (defense == Constants.Defense.RAMPART)
dba0b9ad 44 addSequential(new PassRampart());
3c259ed2 45
9728080f
KZ
46 addSequential(new AlignToScore(position));
47 addSequential(new WaitCommand(5.0));
a697f2ff 48 addSequential(new Shoot());
ab237853 49
53d61b3e
ME
50 }
51
78d476cc 52}