Completed
Push — master ( 0672dd...74c8db )
by John
33s
created

end()   A

Complexity

Conditions 1

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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