331e17b27859081a413c213793bc6b6bcad23d64
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 moat.
8 * pre-condition: robot is flush against the ramp of the outerworks in front of
11 * post-condition: the robot has passed the moat and is in the next zone
13 * @author Meryem and Avi
16 public class PassMoat
extends Command
{
19 // Use requires() here to declare subsystem dependencies
20 // eg. requires(chassis);
23 // Called just before this Command runs the first time
25 protected void initialize() {
28 // Called repeatedly when this Command is scheduled to run
30 protected void execute() {
33 // Make this return true when this Command no longer needs to run execute()
35 protected boolean isFinished() {
39 // Called once after isFinished returns true
41 protected void end() {
44 // Called when another command which requires one or more of the same
45 // subsystems is scheduled to run
47 protected void interrupted() {