1 package org
.usfirst
.frc
.team3501
.robot
.commands
.intakearm
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
10 public class RecordPotAngle
extends Command
{
12 private static int index
;
14 public RecordPotAngle(int index
) {
15 requires(Robot
.intakeArm
);
19 // Called just before this Command runs the first time
21 protected void initialize() {
22 Robot
.intakeArm
.potAngles
[index
] = Robot
.intakeArm
.getArmAngle();
25 // Called repeatedly when this Command is scheduled to run
27 protected void execute() {
30 // Make this return true when this Command no longer needs to run execute()
32 protected boolean isFinished() {
36 // Called once after isFinished returns true
38 protected void end() {
41 // Called when another command which requires one or more of the same
42 // subsystems is scheduled to run
44 protected void interrupted() {