package edu.stuy.commands;

import edu.stuy.Devmode;
import edu.stuy.OI;
import edu.stuy.subsystems.*;
import edu.stuy.subsystems.fake.*;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;

/**
 * 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
 */
public abstract class CommandBase extends Command {

    public static OI oi;
    // Create a single static instance of all of your subsystems
    public static Drivetrain drivetrain;
    public static Flywheel flywheel;
    public static Tusks tusks;
    public static Acquirer acquirer;
    public static Conveyor conveyor;
    public static Camera camera;

    static {
        drivetrain = new Drivetrain();
        conveyor = new Conveyor();
        flywheel = new Flywheel();
        acquirer = new Acquirer();
        camera = new Camera();
        if (!Devmode.DEV_MODE) {
            tusks = new Tusks();
        }
    }

    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();

        if (!Devmode.DEV_MODE) {
            // Show what command your subsystem is running on the SmartDashboard
            SmartDashboard.putData(drivetrain);
            SmartDashboard.putData(flywheel);
            SmartDashboard.putData(tusks);
            SmartDashboard.putData(acquirer);
            SmartDashboard.putData(conveyor);
            SmartDashboard.putData(camera);
        }
    }

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

    public CommandBase() {
        super();
    }
}

@@ -863,16 +863,61 @@
  camera;
+%0A    public static BridgePiston bridgePiston;
 %0A%0A    st
@@ -1166,32 +1166,75 @@
 ks();%0A        %7D%0A
+        bridgePiston = new BridgePiston();%0A
     %7D%0A%0A    publi
@@ -2006,16 +2006,66 @@
 amera);%0A
+            SmartDashboard.putData(bridgePiston);%0A
         

Add bridge piston subsystem to CommandBase.