LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
}
- enum Defense {
- PORTCULLIS, SALLY_PORT, ROUGH_TERRAIN, LOW_BAR, CHEVAL_DE_FRISE, DRAWBRIDGE, MOAT, ROCK_WALL
+ public enum Defense {
+ PORTCULLIS, SALLY_PORT, ROUGH_TERRAIN, LOW_BAR, CHEVAL_DE_FRISE, DRAWBRIDGE, MOAT, ROCK_WALL, RAMPART
}
}
package org.usfirst.frc.team3501.robot.commands;
+import org.usfirst.frc.team3501.robot.Constants.Defense;
+
import edu.wpi.first.wpilibj.command.CommandGroup;
/**
*/
public class DefaultAutonStrategy extends CommandGroup {
- public DefaultAutonStrategy(int position, int defense) {
+ public DefaultAutonStrategy(int position, Defense defense) {
/*
* pass defense drive forward do what has to be done to pass the defense
* drive forward aim face tower aim shooter toward goal shoot
// based on defense pass the defense
switch (defense) {
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
+ case PORTCULLIS:
+ case SALLY_PORT:
+ case ROUGH_TERRAIN:
+ case LOW_BAR:
+ case CHEVAL_DE_FRISE:
+ case DRAWBRIDGE:
+ case MOAT:
+ case ROCK_WALL:
+ case RAMPART:
+ default:
+ break;
+
}
}