package edu.wpi.first.wpilibj.templates.commands;

import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj.templates.OI;
import edu.wpi.first.wpilibj.templates.subsystems.DriveTrain;

/**
 * The base for all commands. All atomic commands should subclass CommandBase.
 * CommandBase stores creates and stores each control system. To access a
 * subsystem elsewhere in your code in your code use
 * CommandBase.exampleSubsystem
 *
 * @author Author
 */
import edu.wpi.first.wpilibj.templates.RobotMap;
import edu.wpi.first.wpilibj.templates.subsystems.JackElevator;

public abstract class CommandBase extends Command {

    public static OI oi;
    // Create a single static instance of all of your subsystems
    public static DriveTrain driveTrain = new DriveTrain("driveTrain", RobotMap.LEFT_TALON_1, RobotMap.LEFT_TALON_2, RobotMap.RIGHT_TALON_1, RobotMap.RIGHT_TALON_2);
    public static JackElevator jack = new JackElevator("jack", RobotMap.JACK_RELAY_1, RobotMap.JACK_REALY_2, RobotMap.JACK_DOOR, RobotMap.JACK_DI_UP, RobotMap.JACK_DI_DOWN, RobotMap.JACK_DI_OPEN, RobotMap.JACK_DI_CLOSED);

    public static void init() {
        // This MUST be here. If the OI creates Commands (which it very likely
        // will), constructing it during the construction of CommandBase (from
        // which commands extend), subsystems are not guaranteed to be
        // yet. Thus, their requires() statements may grab null pointers. Bad
        // news. Don't move it.
        oi = new OI();

        // Show what command your subsystem is running on the SmartDashboard
        SmartDashboard.putData(driveTrain);
    }

    public CommandBase(String name) {
        super(name);
    }

    public CommandBase() {
        super();
    }
}

@@ -638,28 +638,144 @@
 systems.
-JackElevator
+Arm;%0D%0Aimport edu.wpi.first.wpilibj.templates.subsystems.JackElevator;%0D%0Aimport edu.wpi.first.wpilibj.templates.subsystems.Rollers
 ;%0D%0A%0D%0Apub
@@ -1307,16 +1307,269 @@
 LOSED);%0D
+%0A    public static Arm arm = new Arm(RobotMap.ARM_PORT, RobotMap.ARM_UP, RobotMap.ARM_DOWM, %22arm%22);%0D%0A    public static Rollers rollers = new Rollers(%22rollers%22, RobotMap.ROLLER_PORT1, RobotMap.ROLLER_PORT2, RobotMap.ROLLER_PORT3, RobotMap.ROLLER_PORT4);%0D
 %0A%0D%0A    p

Add digital input in Arm