big refactor of command/commandbase/commandgroup. also add auton read from file.
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / commands / Command.java
CommitLineData
b2640783
LH
1package org.usfirst.frc.team3501.robot.commands;
2
3import edu.wpi.first.wpilibj.command.Scheduler;
4
5public abstract class Command
6 extends edu.wpi.first.wpilibj.command.Command
7 implements CommandBase {
8
9 public Command(String commandName) {
10 super(commandName);
11 }
12
13 protected void schedule(Command c) {
14 Scheduler.getInstance().add(c);
15 }
16
17 protected void initialize() {}
18
19 protected void execute() {}
20
21 protected void end() {}
22
23 protected void interrupted() {}
24}