add claw toggle and winch tensioning
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / commands / CommandBase.java
index 45bb43b36699bb0b5a08af651abf4dc633b6d206..50467045ab345c2baa5821ef041c20e67100e259 100644 (file)
@@ -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() {}