bb9a01208457c11e654a2d87040573f06af86b57
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 public RecordPotAngle() {
13 requires(Robot
.intakeArm
);
16 // Called just before this Command runs the first time
18 protected void initialize() {
19 Robot
.intakeArm
.potAngles
[0] = Robot
.intakeArm
.getArmAngle();
22 // Called repeatedly when this Command is scheduled to run
24 protected void execute() {
27 // Make this return true when this Command no longer needs to run execute()
29 protected boolean isFinished() {
33 // Called once after isFinished returns true
35 protected void end() {
38 // Called when another command which requires one or more of the same
39 // subsystems is scheduled to run
41 protected void interrupted() {