create new command to record pot angle when button pressed
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / intakearm / RecordPotAngle.java
CommitLineData
3004ae83
CZ
1package org.usfirst.frc.team3501.robot.commands.intakearm;
2
3import org.usfirst.frc.team3501.robot.Robot;
4
5import edu.wpi.first.wpilibj.command.Command;
6
7/**
8 *
9 */
10public class RecordPotAngle extends Command {
11
12 public RecordPotAngle() {
13 requires(Robot.intakeArm);
14 }
15
16 // Called just before this Command runs the first time
17 @Override
18 protected void initialize() {
19 Robot.intakeArm.potAngles[0] = Robot.intakeArm.getArmAngle();
20 }
21
22 // Called repeatedly when this Command is scheduled to run
23 @Override
24 protected void execute() {
25 }
26
27 // Make this return true when this Command no longer needs to run execute()
28 @Override
29 protected boolean isFinished() {
30 return false;
31 }
32
33 // Called once after isFinished returns true
34 @Override
35 protected void end() {
36 }
37
38 // Called when another command which requires one or more of the same
39 // subsystems is scheduled to run
40 @Override
41 protected void interrupted() {
42 }
43}