1 package org
.usfirst
.frc
.team3501
.robot
.commands
.auton
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
;
4 import org
.usfirst
.frc
.team3501
.robot
.Constants
.Defense
;
5 import org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
.Shoot
;
7 import edu
.wpi
.first
.wpilibj
.command
.CommandGroup
;
10 * The default autonomous strategy involves passing the defense that is in front
11 * of it, aiming the robot/ shooter towards the goal, and shooting.
14 public class DefaultAutonStrategy
extends CommandGroup
{
16 public DefaultAutonStrategy(int position
, Defense defense
) {
18 if (defense
== Constants
.Defense
.PORTCULLIS
)
19 addSequential(new LiftPortcullis());
21 else if (defense
== Constants
.Defense
.SALLY_PORT
)
22 addSequential(new PassSallyPort());
24 else if (defense
== Constants
.Defense
.ROUGH_TERRAIN
)
25 addSequential(new PassRoughTerrain());
27 else if (defense
== Constants
.Defense
.LOW_BAR
)
28 addSequential(new PassLowBar());
30 else if (defense
== Constants
.Defense
.CHEVAL_DE_FRISE
)
31 addSequential(new PassChevalDeFrise());
33 else if (defense
== Constants
.Defense
.DRAWBRIDGE
)
34 addSequential(new PassDrawBridge());
36 else if (defense
== Constants
.Defense
.MOAT
)
37 addSequential(new PassMoat());
39 else if (defense
== Constants
.Defense
.ROCK_WALL
)
40 addSequential(new PassRockWall());
42 else if (defense
== Constants
.Defense
.RAMPART
)
43 addSequential(new PassRampart());
45 addSequential(new AimAndAlign());
46 addSequential(new Shoot());