| 1 | |
| 2 | package org.usfirst.frc.team3501.robot.commands; |
| 3 | |
| 4 | import edu.wpi.first.wpilibj.command.Command; |
| 5 | |
| 6 | import org.usfirst.frc.team3501.robot.Robot; |
| 7 | |
| 8 | /** |
| 9 | * |
| 10 | */ |
| 11 | public class ExampleCommand extends Command { |
| 12 | |
| 13 | public ExampleCommand() { |
| 14 | // Use requires() here to declare subsystem dependencies |
| 15 | requires(Robot.exampleSubsystem); |
| 16 | } |
| 17 | |
| 18 | // Called just before this Command runs the first time |
| 19 | protected void initialize() { |
| 20 | } |
| 21 | |
| 22 | // Called repeatedly when this Command is scheduled to run |
| 23 | protected void execute() { |
| 24 | } |
| 25 | |
| 26 | // Make this return true when this Command no longer needs to run execute() |
| 27 | protected boolean isFinished() { |
| 28 | return false; |
| 29 | } |
| 30 | |
| 31 | // Called once after isFinished returns true |
| 32 | protected void end() { |
| 33 | } |
| 34 | |
| 35 | // Called when another command which requires one or more of the same |
| 36 | // subsystems is scheduled to run |
| 37 | protected void interrupted() { |
| 38 | } |
| 39 | } |