Test Failed
Push — master ( 519662...d9c046 )
by John
04:15 queued 01:23
created

interrupted()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 2
rs 10
cc 1
1
package org.usfirst.frc.team3695.robot.commands;
2
3
import org.usfirst.frc.team3695.robot.Constants;
4
import org.usfirst.frc.team3695.robot.Robot;
5
import org.usfirst.frc.team3695.robot.enumeration.Direction;
6
import org.usfirst.frc.team3695.robot.util.Util;
7
8
import edu.wpi.first.wpilibj.command.Command;
9
10
/**
11
 * toggles the state of the clamp
12
 */
13
public class ButtonCommandClamp extends Command {
14
	
15
	Direction direction;
16
	
17
    public ButtonCommandClamp() {
18
        requires(Robot.SUB_CLAMP);
19
    }
20
21
    protected void initialize() {
22
    	Robot.SUB_CLAMP.openArms();
23
    }
24
25
    protected void execute() {}
26
27
    protected boolean isFinished() {
28
        return false;
29
    }
30
31
    protected void end() {
32
    	Robot.SUB_CLAMP.closeArms();
33
    }
34
35
    protected void interrupted() {
36
    	end();
37
    }
38
}
39