Commit | Line | Data |
---|---|---|
6bb7f8ac | 1 | package org.usfirst.frc.team3501.robot.commands.auton; |
d607dcbb | 2 | |
ab4ae5b8 | 3 | import edu.wpi.first.wpilibj.command.CommandGroup; |
d607dcbb ME |
4 | |
5 | /*** | |
6 | * This command will drive the robot through the low bar. | |
7 | * | |
8 | * pre-condition: robot is flush against the ramp of the outerworks in front of | |
9 | * the low bar | |
10 | * | |
11 | * post-condition: the robot has passed the low bar and is in the next zone | |
12 | * | |
13 | * @author Meryem and Avi | |
14 | * | |
15 | */ | |
d607dcbb | 16 | |
ab4ae5b8 | 17 | public class PassLowBar extends CommandGroup { |
54c525f6 | 18 | |
ab4ae5b8 ME |
19 | private final double DISTANCE = 4.0; |
20 | private final double DEFAULT_SPEED = 0.5; | |
d607dcbb | 21 | |
ab4ae5b8 | 22 | public PassLowBar() { |
b332ad0d ME |
23 | // TODO: need to add sequential for retracting the arms and shooting hood |
24 | // once those commands are made | |
ab4ae5b8 | 25 | addSequential(new DriveForDistance(DISTANCE, DEFAULT_SPEED)); |
d607dcbb ME |
26 | } |
27 | ||
ab4ae5b8 ME |
28 | public PassLowBar(double speed) { |
29 | addSequential(new DriveForDistance(DISTANCE, speed)); | |
d607dcbb ME |
30 | } |
31 | } |