X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2FCommandBase.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2FCommandBase.java;h=50467045ab345c2baa5821ef041c20e67100e259;hb=d24e8611dc96b16cc613a0de54bde4e682a06ba2;hp=45bb43b36699bb0b5a08af651abf4dc633b6d206;hpb=510cff21b567a9d71b188b28081b716b9ea816cc;p=ozzloy%40gmail.com%2F3501-spark-go diff --git a/src/org/usfirst/frc/team3501/robot/commands/CommandBase.java b/src/org/usfirst/frc/team3501/robot/commands/CommandBase.java index 45bb43b..5046704 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/CommandBase.java +++ b/src/org/usfirst/frc/team3501/robot/commands/CommandBase.java @@ -5,6 +5,7 @@ import org.usfirst.frc.team3501.robot.Robot; import org.usfirst.frc.team3501.robot.subsystems.*; import edu.wpi.first.wpilibj.command.Command; +import edu.wpi.first.wpilibj.command.Scheduler; public abstract class CommandBase extends Command { @@ -28,6 +29,10 @@ public abstract class CommandBase extends Command { pneumatics = Robot.pneumatics; } + protected void schedule(Command c) { + Scheduler.getInstance().add(c); + } + protected void initialize() {} protected void execute() {}