ToggleCommandHook()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
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
/** move the mast */
7
public class ToggleCommandHook extends Command {
8
    
9
    public ToggleCommandHook() {
10
        requires(Robot.SUB_HOOK);
11
    }
12
13
    protected void initialize() {
14
        Robot.SUB_HOOK.raiseHook();
15
    }
16
17
    protected void execute() {}
18
19
    protected boolean isFinished() { return false; }
20
21
    protected void end() {
22
        Robot.SUB_HOOK.lowerHook();
23
    }
24
25
    protected void interrupted() {
26
    	end();
27
    }
28
}
29