make so does not crash
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / bases / Command.java
CommitLineData
5b3b1652 1package org.usfirst.frc.team3501.bases;
b2640783 2
299be031
LH
3import org.usfirst.frc.team3501.robot.OI;
4import org.usfirst.frc.team3501.robot.Robot;
5import org.usfirst.frc.team3501.robot.subsystems.Arm;
6import org.usfirst.frc.team3501.robot.subsystems.Claw;
7import org.usfirst.frc.team3501.robot.subsystems.Drivetrain;
8import org.usfirst.frc.team3501.robot.subsystems.Pneumatics;
9import org.usfirst.frc.team3501.util.AutonData;
10
b2640783
LH
11import edu.wpi.first.wpilibj.command.Scheduler;
12
13public abstract class Command
299be031
LH
14 extends edu.wpi.first.wpilibj.command.Command {
15
16 protected static OI oi;
17
18 protected static AutonData autonData;
19
20 protected static Drivetrain drivetrain;
21 protected static Arm arm;
22 protected static Claw claw;
23
24 protected static Pneumatics pneumatics;
b2640783
LH
25
26 public Command(String commandName) {
27 super(commandName);
299be031
LH
28
29 oi = Robot.oi;
30
31 autonData = Robot.autonData;
32
33 drivetrain = Robot.drivetrain;
34 arm = Robot.arm;
35 claw = Robot.claw;
36
37 pneumatics = Robot.pneumatics;
b2640783
LH
38 }
39
40 protected void schedule(Command c) {
41 Scheduler.getInstance().add(c);
42 }
43
44 protected void initialize() {}
45
46 protected void execute() {}
47
48 protected void end() {}
49
50 protected void interrupted() {}
51}