separated each pass defense command (purely driving ones) into two, one based on...
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / PassRoughTerrainDistance.java
1 package org.usfirst.frc.team3501.robot.commands.auton;
2
3 import org.usfirst.frc.team3501.robot.commands.driving.DriveForTime;
4
5 import edu.wpi.first.wpilibj.command.CommandGroup;
6
7 /***
8 * This command will drive the robot through the rough terrain.
9 *
10 * dependency on subsytems: drivetrain
11 *
12 * dependency on other commands: DriveForTime
13 *
14 * pre-condition: robot is flush against the ramp of the outerworks in front of
15 * the rough terrain
16 *
17 * post-condition: the robot has passed the rough terrain and is in the next
18 * zone
19 *
20 * @author Meryem and Avi
21 *
22 */
23 public class PassRoughTerrainDistance extends CommandGroup {
24
25 // TODO: test for the time
26 private final double BEG_TIME = 0;
27 private final double MID_TIME = 0;
28 private final double END_TIME = 0;
29
30 private final double BEG_SPEED = 0;
31 private final double MID_SPEED = 0;
32 private final double END_SPEED = 0;
33
34 public PassRoughTerrainDistance() {
35
36 addSequential(new DriveForTime(BEG_TIME, BEG_SPEED));
37 addSequential(new DriveForTime(MID_TIME, MID_SPEED));
38 addSequential(new DriveForTime(END_TIME, BEG_SPEED));
39
40 }
41 }