set up AlignToScore command group
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / auton / PassLowBar.java
CommitLineData
6bb7f8ac 1package org.usfirst.frc.team3501.robot.commands.auton;
d607dcbb 2
ab4ae5b8 3import edu.wpi.first.wpilibj.command.CommandGroup;
d607dcbb
ME
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 */
d607dcbb 16
ab4ae5b8 17public class PassLowBar extends CommandGroup {
54c525f6 18
ab4ae5b8
ME
19 private final double DISTANCE = 4.0;
20 private final double DEFAULT_SPEED = 0.5;
d607dcbb 21
ab4ae5b8 22 public PassLowBar() {
ff5c6dcc 23 // TODO: need to add sequential for retracting the arms and shooting hood once those commands are made
ab4ae5b8 24 addSequential(new DriveForDistance(DISTANCE, DEFAULT_SPEED));
d607dcbb
ME
25 }
26
ab4ae5b8
ME
27 public PassLowBar(double speed) {
28 addSequential(new DriveForDistance(DISTANCE, speed));
d607dcbb
ME
29 }
30}