X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2FCommandBase.java;h=3a5044e0976819d30718f309d2c66933642dd481;hb=b26407834f93b26caa7617d3cfcdd7a39c732818;hp=50467045ab345c2baa5821ef041c20e67100e259;hpb=3cd438bd5b650a27b84ef37224025cd7f6086e7c;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 5046704..3a5044e 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/CommandBase.java +++ b/src/org/usfirst/frc/team3501/robot/commands/CommandBase.java @@ -1,43 +1,19 @@ package org.usfirst.frc.team3501.robot.commands; +import org.usfirst.frc.team3501.robot.AutonData; import org.usfirst.frc.team3501.robot.OI; 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 interface CommandBase { -public abstract class CommandBase extends Command { + final static OI oi = Robot.oi; - protected static OI oi; + final static AutonData autonData = Robot.autonData; - protected static Drivetrain drivetrain; - protected static Arm arm; - protected static Claw claw; + final static Drivetrain drivetrain = Robot.drivetrain; + final static Arm arm = Robot.arm; + final static Claw claw = Robot.claw; - protected static Pneumatics pneumatics; - - public CommandBase(String commandName) { - super(commandName); - - oi = Robot.oi; - - drivetrain = Robot.drivetrain; - arm = Robot.arm; - claw = Robot.claw; - - pneumatics = Robot.pneumatics; - } - - protected void schedule(Command c) { - Scheduler.getInstance().add(c); - } - - protected void initialize() {} - - protected void execute() {} - - protected void end() {} - - protected void interrupted() {} + final static Pneumatics pneumatics = Robot.pneumatics; }