add claw toggle and winch tensioning
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / commands / CommandBase.java
CommitLineData
b449387d
LH
1package org.usfirst.frc.team3501.robot.commands;
2
3import org.usfirst.frc.team3501.robot.OI;
4import org.usfirst.frc.team3501.robot.Robot;
5import org.usfirst.frc.team3501.robot.subsystems.*;
6
7import edu.wpi.first.wpilibj.command.Command;
d24e8611 8import edu.wpi.first.wpilibj.command.Scheduler;
b449387d
LH
9
10public abstract class CommandBase extends Command {
11
12 protected static OI oi;
13
14 protected static Drivetrain drivetrain;
15 protected static Arm arm;
16 protected static Claw claw;
17
510cff21
LH
18 protected static Pneumatics pneumatics;
19
b449387d
LH
20 public CommandBase(String commandName) {
21 super(commandName);
22
23 oi = Robot.oi;
24
25 drivetrain = Robot.drivetrain;
26 arm = Robot.arm;
27 claw = Robot.claw;
510cff21
LH
28
29 pneumatics = Robot.pneumatics;
b449387d
LH
30 }
31
d24e8611
LH
32 protected void schedule(Command c) {
33 Scheduler.getInstance().add(c);
34 }
35
b449387d
LH
36 protected void initialize() {}
37
38 protected void execute() {}
39
40 protected void end() {}
41
42 protected void interrupted() {}
43}