1 package org
.usfirst
.frc
.team3501
.robot
.commands
;
3 import edu
.wpi
.first
.wpilibj
.command
.Command
;
6 * This command will drive the robot through the rough terrain.
8 * pre-condition: robot is flush against the ramp of the outerworks in front of
11 * post-condition: the robot has passed the rough terrain and is in the next
14 * @author Meryem and Avi
17 public class PassRoughTerrain
extends Command
{
19 public PassRoughTerrain() {
20 // Use requires() here to declare subsystem dependencies
21 // eg. requires(chassis);
24 // Called just before this Command runs the first time
26 protected void initialize() {
29 // Called repeatedly when this Command is scheduled to run
31 protected void execute() {
34 // Make this return true when this Command no longer needs to run execute()
36 protected boolean isFinished() {
40 // Called once after isFinished returns true
42 protected void end() {
45 // Called when another command which requires one or more of the same
46 // subsystems is scheduled to run
48 protected void interrupted() {