set up AlignToScore command group
[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 // TODO: need to add sequential for retracting the arms and shooting hood once those commands are made
24 addSequential(new DriveForDistance(DISTANCE, DEFAULT_SPEED));
25 }
26
27 public PassLowBar(double speed) {
28 addSequential(new DriveForDistance(DISTANCE, speed));
29 }
30 }