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

Complexity

Total Complexity 6

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

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

6 Methods

Rating   Name   Duplication   Size   Complexity  
A interrupted() 0 1 1
A initialize() 0 1 1
A end() 0 1 1
A ToggleCommandIntimidate() 0 3 1
A execute() 0 2 1
A isFinished() 0 1 1
1
package org.usfirst.frc.team3695.robot.commands;
2
3
import edu.wpi.first.wpilibj.command.Command;
4
5
import org.usfirst.frc.team3695.robot.OI;
6
import org.usfirst.frc.team3695.robot.Robot;
7
8
/** toggles the state of the clamp */
9
public class ToggleCommandIntimidate extends Command {
10
11
    public ToggleCommandIntimidate() {
12
    	requires(Robot.SUB_DRIVE);
13
    	requires(Robot.SUB_MANIPULATOR);
14
    }
15
16
    protected void initialize() {}
17
18
    protected void execute() {
19
    	Robot.SUB_MANIPULATOR.rev(OI.DRIVER);
20
    }
21
22
    protected boolean isFinished() { return false; }
23
24
    protected void end() {}
25
26
    protected void interrupted() {}
27
}
28