X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2FCommand.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2FCommand.java;h=42c58d6a4a67f0f485610aa84bcf9b3a8f567ba6;hb=b26407834f93b26caa7617d3cfcdd7a39c732818;hp=0000000000000000000000000000000000000000;hpb=3cd438bd5b650a27b84ef37224025cd7f6086e7c;p=ozzloy%40gmail.com%2F3501-spark-go diff --git a/src/org/usfirst/frc/team3501/robot/commands/Command.java b/src/org/usfirst/frc/team3501/robot/commands/Command.java new file mode 100644 index 0000000..42c58d6 --- /dev/null +++ b/src/org/usfirst/frc/team3501/robot/commands/Command.java @@ -0,0 +1,24 @@ +package org.usfirst.frc.team3501.robot.commands; + +import edu.wpi.first.wpilibj.command.Scheduler; + +public abstract class Command + extends edu.wpi.first.wpilibj.command.Command + implements CommandBase { + + public Command(String commandName) { + super(commandName); + } + + protected void schedule(Command c) { + Scheduler.getInstance().add(c); + } + + protected void initialize() {} + + protected void execute() {} + + protected void end() {} + + protected void interrupted() {} +}