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