c03ce143465c5b9a58ba08ece9f6cb3cfc556719
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 * dependency on sensors: encoders
9 * dependency on subsystems: drivetrain
10 * dependency on other commands: DriveForDist
12 * pre-condition: robot is flush against the ramp of the outerworks in front of
15 * post-condition: the robot has passed the low bar and is in the next zone
17 * @author Meryem and Avi
21 public class PassLowBar
extends CommandGroup
{
23 private final double DISTANCE
= 4.0;
24 private final double DEFAULT_SPEED
= 0.5;
27 // TODO: need to add sequential for retracting the arms and shooting hood once those commands are made
28 addSequential(new DriveForDistance(DISTANCE
, DEFAULT_SPEED
));
31 public PassLowBar(double speed
) {
32 addSequential(new DriveForDistance(DISTANCE
, speed
));