Test Failed
Push — master ( d9c046...9db1c9 )
by John
04:04 queued 01:56
created

org.usfirst.frc.team3695.robot.commands.ManualCommandHook   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 6
c 2
b 0
f 0
dl 0
loc 21
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 1 1
A ManualCommandHook() 0 2 1
A end() 0 1 1
A isFinished() 0 2 1
A execute() 0 2 1
A interrupted() 0 1 1
1
package org.usfirst.frc.team3695.robot.commands;
2
3
import edu.wpi.first.wpilibj.DigitalInput;
4
import org.usfirst.frc.team3695.robot.OI;
5
import org.usfirst.frc.team3695.robot.Robot;
6
7
import edu.wpi.first.wpilibj.command.Command;
8
9
/** move the mast */
10
public class ManualCommandHook extends Command {
11
12
    
13
    public ManualCommandHook() {
14
        requires(Robot.SUB_HOOK);
15
    }
16
17
    protected void initialize() {
18
    }
19
20
    protected void execute() {
21
    	Robot.SUB_HOOK.swing(OI.OPERATOR);
22
    }
23
24
    protected boolean isFinished() {
25
        return false;
26
    }
27
28
    protected void end() {}
29
30
    protected void interrupted() {}
31
}
32