5a7ef5b4208e8552e5c9df539e1fd63d3ea4bf1b
1 package org
.usfirst
.frc
.team3501
.robot
.commands
.auton
;
3 import edu
.wpi
.first
.wpilibj
.command
.CommandGroup
;
6 * This command will drive the robot through the low bar.
8 * pre-condition: robot is flush against the ramp of the outerworks in front of
11 * post-condition: the robot has passed the low bar and is in the next zone
13 * @author Meryem and Avi
17 public class PassLowBar
extends CommandGroup
{
19 private final double DISTANCE
= 4.0;
20 private final double DEFAULT_SPEED
= 0.5;
23 addSequential(new DriveForDistance(DISTANCE
, DEFAULT_SPEED
));
26 public PassLowBar(double speed
) {
27 addSequential(new DriveForDistance(DISTANCE
, speed
));