package edu.stuy.subsystems;

import edu.wpi.first.wpilibj.Solenoid;
import edu.wpi.first.wpilibj.command.Subsystem;
import static edu.stuy.RobotMap.*;

/**
 *
 */
public class Arms extends Subsystem {

    // Put methods for controlling this subsystem
    // here. Call these from Commands.

    private Solenoid shortPistonOut;
    private Solenoid shortPistonIn;
    private Solenoid longPistonOut;
    private Solenoid longPistonIn;

    public Arms() {
        shortPistonOut = new Solenoid(SOLENOID_ARMS_SHORT_OUT);
        shortPistonIn = new Solenoid(SOLENOID_ARMS_SHORT_IN);
        longPistonOut = new Solenoid(SOLENOID_ARMS_LONG_OUT);
        longPistonIn = new Solenoid(SOLENOID_ARMS_LONG_IN);
    }

    private void setShortPiston(boolean out) {
        shortPistonOut.set(out);
        shortPistonIn.set(!out);
    }

    private void setLongPiston(boolean out) {
        longPistonOut.set(out);
        longPistonIn.set(!out);
    }

    public void setNarrow() {
        setShortPiston(false);
        setLongPiston(false);
    }

    public void setWide() {
        setShortPiston(true);
        setLongPiston(false);
    }

    public void release() {
        setShortPiston(true);
        setLongPiston(true);
    }

    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
}


@@ -150,19 +150,8 @@
 *;%0A%0A
-/**%0A *%0A */%0A
 publ
@@ -924,32 +924,111 @@
 t(!out);%0A    %7D%0A%0A
+    /**%0A     * Retracts both pistons for the narrower side of the tote%0A     */%0A
     public void 
@@ -1101,32 +1101,118 @@
 (false);%0A    %7D%0A%0A
+    /**%0A     * Retracts only the longer piston for the wider side of the tote%0A     */%0A
     public void 
@@ -1282,32 +1282,96 @@
 (false);%0A    %7D%0A%0A
+    /**%0A     * Extends both pistons to release the tote%0A     */%0A
     public void 

Add comments to clarify usage of pistons