| 1 | package org.usfirst.frc.team3501.robot.commands; |
| 2 | |
| 3 | import org.usfirst.frc.team3501.robot.OI; |
| 4 | import org.usfirst.frc.team3501.robot.Robot; |
| 5 | import org.usfirst.frc.team3501.robot.subsystems.*; |
| 6 | |
| 7 | import edu.wpi.first.wpilibj.command.Command; |
| 8 | |
| 9 | public abstract class CommandBase extends Command { |
| 10 | |
| 11 | protected static OI oi; |
| 12 | |
| 13 | protected static Drivetrain drivetrain; |
| 14 | protected static Arm arm; |
| 15 | protected static Claw claw; |
| 16 | |
| 17 | public CommandBase(String commandName) { |
| 18 | super(commandName); |
| 19 | |
| 20 | oi = Robot.oi; |
| 21 | |
| 22 | drivetrain = Robot.drivetrain; |
| 23 | arm = Robot.arm; |
| 24 | claw = Robot.claw; |
| 25 | } |
| 26 | |
| 27 | protected void initialize() {} |
| 28 | |
| 29 | protected void execute() {} |
| 30 | |
| 31 | protected void end() {} |
| 32 | |
| 33 | protected void interrupted() {} |
| 34 | } |