f1b037260a9c51293fde66915e21744af40e82a7
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 rough terrain.
12 * dependency on subsytems: drivetrain
14 * dependency on other commands: DriveForTime
16 * pre-condition: robot is flush against the ramp of the outerworks in front of
19 * post-condition: the robot has passed the rough terrain and is in the next
22 * @author Meryem and Avi
25 public class PassRoughTerrain
extends CommandGroup
{
27 public PassRoughTerrain() {
29 if (Constants
.Auton
.isUsingTime
) {
30 addSequential(new DriveForTime(Constants
.Auton
.passRockWallTime
,
31 Constants
.Auton
.passRockWallSpeed
));
34 addSequential(new DriveDistance(
35 Constants
.Auton
.passRoughTerrainDistance
,
36 Constants
.DriveTrain
.PASS_DEFENSE_TIMEOUT
));