1b74da6c593955bc09a7bb1fec94542a417355e8
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 rock wall.
12 * dependency on subsystems: 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 rock wall and is in the next zone
21 * @author Meryem and Avi
25 public class PassRockWall
extends CommandGroup
{
27 public PassRockWall() {
28 if (Constants
.Auton
.IS_USING_TIME
) {
29 addSequential(new DriveForTime(Constants
.Auton
.PASS_ROCK_WALL_TIME
,
30 Constants
.Auton
.PASS_ROCK_WALL_SPEED
));
33 addSequential(new DriveDistance(
34 Constants
.Auton
.PASS_ROCK_WALL_DIST
,
35 Constants
.DriveTrain
.PASS_DEFENSE_TIMEOUT
));