2 package org
.usfirst
.frc
.team3501
.robot
.commands
;
4 import edu
.wpi
.first
.wpilibj
.command
.Command
;
6 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
11 public class ExampleCommand
extends Command
{
13 public ExampleCommand() {
14 // Use requires() here to declare subsystem dependencies
15 requires(Robot
.exampleSubsystem
);
18 // Called just before this Command runs the first time
19 protected void initialize() {
22 // Called repeatedly when this Command is scheduled to run
23 protected void execute() {
26 // Make this return true when this Command no longer needs to run execute()
27 protected boolean isFinished() {
31 // Called once after isFinished returns true
32 protected void end() {
35 // Called when another command which requires one or more of the same
36 // subsystems is scheduled to run
37 protected void interrupted() {