| 1 | package org.usfirst.frc.team3501.robot.commands.auton; |
| 2 | |
| 3 | import edu.wpi.first.wpilibj.command.Command; |
| 4 | |
| 5 | public class PassSallyPort extends Command { |
| 6 | /*** |
| 7 | * This command will only open the sally port pass through it. It will do this |
| 8 | * by hooking onto the port and driving backwards while rotating then driving |
| 9 | * backwards through the sally port. |
| 10 | * |
| 11 | * pre-condition: robot is in the neutral zone, flush against the ramp of the |
| 12 | * outerworks in front of the portcullis |
| 13 | * |
| 14 | * post-condition: the robot has passed the sally port and is in a courtyard |
| 15 | * |
| 16 | * note: to go from the courtyard to neutral zone, the driver just has to |
| 17 | * drive through the port |
| 18 | * |
| 19 | * @author Meryem and Avi |
| 20 | * |
| 21 | */ |
| 22 | |
| 23 | public PassSallyPort() { |
| 24 | } |
| 25 | |
| 26 | @Override |
| 27 | protected void initialize() { |
| 28 | } |
| 29 | |
| 30 | @Override |
| 31 | protected void execute() { |
| 32 | } |
| 33 | |
| 34 | @Override |
| 35 | protected boolean isFinished() { |
| 36 | return false; |
| 37 | } |
| 38 | |
| 39 | @Override |
| 40 | protected void end() { |
| 41 | } |
| 42 | |
| 43 | @Override |
| 44 | protected void interrupted() { |
| 45 | } |
| 46 | } |