set up the switch statement for the defenses
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / DefaultAutonStrategy.java
1 package org.usfirst.frc.team3501.robot.commands;
2
3 import org.usfirst.frc.team3501.robot.Constants.Defense;
4
5 import edu.wpi.first.wpilibj.command.CommandGroup;
6
7 /**
8 * The default autonomous strategy involves passing the defense that is in front
9 * of it, aiming the robot/ shooter towards the goal, and shooting.
10 */
11 public class DefaultAutonStrategy extends CommandGroup {
12
13 public DefaultAutonStrategy(int position, Defense defense) {
14 /*
15 * pass defense drive forward do what has to be done to pass the defense
16 * drive forward aim face tower aim shooter toward goal shoot
17 */
18
19 // based on defense pass the defense
20 switch (defense) {
21 case PORTCULLIS:
22 case SALLY_PORT:
23 case ROUGH_TERRAIN:
24 case LOW_BAR:
25 case CHEVAL_DE_FRISE:
26 case DRAWBRIDGE:
27 case MOAT:
28 case ROCK_WALL:
29 case RAMPART:
30 default:
31 break;
32
33 }
34
35 }
36
37 }