public static enum Direction {
LEFT, RIGHT, DOWN, UP, FORWARD, BACKWARD;
}
+
+ enum Defense {
+ PORTCULLIS, SALLY_PORT, ROUGH_TERRAIN, LOW_BAR, CHEVAL_DE_FRISE, DRAWBRIDGE, MOAT, ROCK_WALL
+ }
}
package org.usfirst.frc.team3501.robot;
+import org.usfirst.frc.team3501.robot.Constants.Defense;
import org.usfirst.frc.team3501.robot.Constants.DriveTrain;
import org.usfirst.frc.team3501.robot.subsystems.Shooter;
public static DriveTrain driveTrain;
public static Shooter shooter;
- enum Defense {
- PORTCULLIS, SALLY_PORT, ROUGH_TERRAIN, LOW_BAR, CHEVAL_DE_FRISE, DRAWBRIDGE, MOAT, ROCK_WALL
- };
-
// Sendable Choosers send a drop down menu to the Smart Dashboard.
SendableChooser positionOneDefense;
SendableChooser positionTwoDefense;
import edu.wpi.first.wpilibj.command.CommandGroup;
/**
- *
+ * The default autonomous strategy involves passing the defense that is in front
+ * of it, aiming the robot/ shooter towards the goal, and shooting.
*/
public class DefaultAutonStrategy extends CommandGroup {
-
- public DefaultAutonStrategy() {
- // Add Commands here:
- // e.g. addSequential(new Command1());
- // addSequential(new Command2());
- // these will run in order.
- // To run multiple commands at the same time,
- // use addParallel()
- // e.g. addParallel(new Command1());
- // addSequential(new Command2());
- // Command1 and Command2 will run in parallel.
+ public DefaultAutonStrategy(int position, int 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
+ */
- // A command group will require all of the subsystems that each member
- // would require.
- // e.g. if Command1 requires chassis, and Command2 requires arm,
- // a CommandGroup containing them would require both the chassis and the
- // arm.
+ // based on defense pass the defense
+ switch (defense) {
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
}
+
+ }
+
}