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