org.usfirst.frc.team3695.robot.commands.ManualCommandGrow   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 6
c 0
b 0
f 0
dl 0
loc 20
rs 10

6 Methods

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