Commit | Line | Data |
---|---|---|
ff5c6dcc ME |
1 | package org.usfirst.frc.team3501.robot.commands; |
2 | ||
3 | import edu.wpi.first.wpilibj.command.CommandGroup; | |
4 | ||
5 | /** | |
6 | * This command group will be used in autonomous. Based on what position the | |
7 | * robot is in, the robot will align with the goal | |
8 | * | |
9 | * pre-condition: robot is flush against a defense at the specified position in | |
10 | * the opponent's courtyard | |
11 | * | |
12 | * post-condition: the robot is parallel to one of the three goals and the | |
13 | * shooter is facing that goal | |
14 | * | |
15 | */ | |
16 | public class AlignToScore extends CommandGroup { | |
17 | ||
18 | public AlignToScore(int position) { | |
19 | ||
20 | switch (position) { | |
21 | case 1: | |
22 | ||
23 | addSequential(); | |
24 | ||
25 | case 2: | |
26 | ||
27 | addSequential(); | |
28 | ||
29 | case 3: | |
30 | ||
31 | addSequential(); | |
32 | ||
33 | case 4: | |
34 | ||
35 | addSequential(); | |
36 | ||
37 | case 5: | |
38 | ||
39 | addSequential(); | |
40 | } | |
41 | } | |
42 | } |