1 package org
.usfirst
.frc
.team3501
.robot
.commands
;
3 import org
.usfirst
.frc
.team3501
.robot
.OI
;
4 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.*;
7 import edu
.wpi
.first
.wpilibj
.command
.Command
;
8 import edu
.wpi
.first
.wpilibj
.command
.Scheduler
;
10 public abstract class CommandBase
extends Command
{
12 protected static OI oi
;
14 protected static Drivetrain drivetrain
;
15 protected static Arm arm
;
16 protected static Claw claw
;
18 protected static Pneumatics pneumatics
;
20 public CommandBase(String commandName
) {
25 drivetrain
= Robot
.drivetrain
;
29 pneumatics
= Robot
.pneumatics
;
32 protected void schedule(Command c
) {
33 Scheduler
.getInstance().add(c
);
36 protected void initialize() {}
38 protected void execute() {}
40 protected void end() {}
42 protected void interrupted() {}