set up the switch statement for the defenses
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / DefaultAutonStrategy.java
CommitLineData
78d476cc
ME
1package org.usfirst.frc.team3501.robot.commands;
2
dd794a4e
ME
3import org.usfirst.frc.team3501.robot.Constants.Defense;
4
78d476cc
ME
5import edu.wpi.first.wpilibj.command.CommandGroup;
6
7/**
53d61b3e
ME
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.
78d476cc
ME
10 */
11public class DefaultAutonStrategy extends CommandGroup {
78d476cc 12
dd794a4e 13 public DefaultAutonStrategy(int position, Defense defense) {
53d61b3e
ME
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 */
78d476cc 18
53d61b3e
ME
19 // based on defense pass the defense
20 switch (defense) {
dd794a4e
ME
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
78d476cc 33 }
53d61b3e
ME
34
35 }
36
78d476cc 37}