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:
}
+
+ }
+
}