1 package org
.usfirst
.frc
.team3501
.robot
.commands
.auton
;
3 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.DriveDistance
;
5 import edu
.wpi
.first
.wpilibj
.command
.CommandGroup
;
8 * This command will drive the robot through the low bar.
10 * dependency on sensors: encoders
11 * dependency on subsystems: drivetrain
12 * dependency on other commands: DriveForDist
14 * pre-condition: robot is flush against the ramp of the outerworks in front of
17 * post-condition: the robot has passed the low bar and is in the next zone
19 * @author Meryem and Avi
23 public class PassLowBar
extends CommandGroup
{
25 private final double DISTANCE
= 4.0;
26 private final double DEFAULT_SPEED
= 0.5;
29 // TODO: need to add sequential for retracting the arms and shooting hood
30 // once those commands are made
31 addSequential(new DriveDistance(DISTANCE
, DEFAULT_SPEED
));
34 public PassLowBar(double speed
) {
35 addSequential(new DriveDistance(DISTANCE
, speed
));