Test Failed
Pull Request — master (#132)
by John
03:47 queued 14s
created

end()   A

Complexity

Conditions 1

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
c 0
b 0
f 0
dl 0
loc 1
rs 10
1
package org.usfirst.frc.team3695.robot.commands;
2
3
import edu.wpi.first.wpilibj.command.Command;
4
import org.usfirst.frc.team3695.robot.Robot;
5
6
/**
7
 * toggles the state of the clamp
8
 */
9
public class ButtonCommandHitTheDeck extends Command {
10
	
11
	Boolean isFinished;
0 ignored issues
show
Comprehensibility introduced by
Fields and methods should not have conflicting names like isFinished. While this is technically legal it can lead to misunderstandings and problems with serialization.
Loading history...
12
	
13
    public ButtonCommandHitTheDeck() {
14
        requires(Robot.SUB_MAST);
15
    }
16
    
17
    protected void initialize() {
18
    	Robot.SUB_MAST.setOverride(true);
19
    	//isFinished = Robot.SUB_MAST.goToMiddle();
20
    }
21
22
    protected void execute() {
23
    	isFinished = Robot.SUB_MAST.dropIt();
24
    	if (isFinished) 
25
			end();
26
    }
27
28
    protected boolean isFinished() { return isFinished; }
29
30
    protected void end() {
31
    	
32
    }
33
34
    protected void interrupted() {
35
    	end();
36
    }
37
}
38