1 package org
.usfirst
.frc
.team3501
.robot
.commands
.auton
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
;
4 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.DriveDistance
;
5 import org
.usfirst
.frc
.team3501
.robot
.commands
.driving
.DriveForTime
;
7 import edu
.wpi
.first
.wpilibj
.command
.CommandGroup
;
10 * This command will drive the robot through the low bar.
12 * dependency on sensors: encoders
13 * dependency on subsystems: drivetrain
14 * dependency on other commands: DriveForDist
16 * pre-condition: robot is flush against the ramp of the outerworks in front of
19 * post-condition: the robot has passed the low bar and is in the next zone
21 * @author Meryem and Avi
25 public class PassLowBar
extends CommandGroup
{
28 if (Constants
.Auton
.isUsingTimeToPassDefense
) {
29 addSequential(new DriveForTime(Constants
.Auton
.passLowBarTime
,
30 Constants
.Auton
.passLowBarSpeed
));
33 addSequential(new DriveDistance(
34 Constants
.Auton
.passLowBarDistance
,
35 Constants
.DriveTrain
.PASS_DEFENSE_TIMEOUT
));