5a7ef5b4208e8552e5c9df539e1fd63d3ea4bf1b
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / PassLowBar.java
1 package org.usfirst.frc.team3501.robot.commands.auton;
2
3 import edu.wpi.first.wpilibj.command.CommandGroup;
4
5 /***
6 * This command will drive the robot through the low bar.
7 *
8 * pre-condition: robot is flush against the ramp of the outerworks in front of
9 * the low bar
10 *
11 * post-condition: the robot has passed the low bar and is in the next zone
12 *
13 * @author Meryem and Avi
14 *
15 */
16
17 public class PassLowBar extends CommandGroup {
18
19 private final double DISTANCE = 4.0;
20 private final double DEFAULT_SPEED = 0.5;
21
22 public PassLowBar() {
23 addSequential(new DriveForDistance(DISTANCE, DEFAULT_SPEED));
24 }
25
26 public PassLowBar(double speed) {
27 addSequential(new DriveForDistance(DISTANCE, speed));
28 }
29 }