Commit | Line | Data |
---|---|---|
d607dcbb ME |
1 | package org.usfirst.frc.team3501.robot.commands; |
2 | ||
ac8d2d34 | 3 | import edu.wpi.first.wpilibj.command.CommandGroup; |
d607dcbb ME |
4 | |
5 | /*** | |
6 | * This command will drive the robot through the rough terrain. | |
7 | * | |
c200b766 ME |
8 | * dependency on subsytems: drivetrain |
9 | * | |
10 | * dependency on other commands: DriveForTime | |
11 | * | |
d607dcbb ME |
12 | * pre-condition: robot is flush against the ramp of the outerworks in front of |
13 | * the rough terrain | |
14 | * | |
15 | * post-condition: the robot has passed the rough terrain and is in the next | |
16 | * zone | |
17 | * | |
18 | * @author Meryem and Avi | |
19 | * | |
20 | */ | |
ac8d2d34 | 21 | public class PassRoughTerrain extends CommandGroup { |
d607dcbb | 22 | |
ac8d2d34 ME |
23 | // TODO: test for the time |
24 | private final double BEG_TIME = 0; | |
25 | private final double MID_TIME = 0; | |
26 | private final double END_TIME = 0; | |
54c525f6 | 27 | |
ac8d2d34 ME |
28 | private final double BEG_SPEED = 0; |
29 | private final double MID_SPEED = 0; | |
30 | private final double END_SPEED = 0; | |
d607dcbb | 31 | |
ac8d2d34 | 32 | public PassRoughTerrain() { |
d607dcbb | 33 | |
ac8d2d34 ME |
34 | addSequential(new DriveForTime(BEG_TIME, BEG_SPEED)); |
35 | addSequential(new DriveForTime(MID_TIME, MID_SPEED)); | |
36 | addSequential(new DriveForTime(END_TIME, BEG_SPEED)); | |
d607dcbb | 37 | |
d607dcbb ME |
38 | } |
39 | } |