@@ -0,0 +1,1199 @@
+package org.strykeforce.thirdcoast.util;%0A%0Aimport edu.wpi.first.wpilibj.DigitalInput;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Apublic class AutonSwitch %7B%0A%0A    private final List%3CDigitalInput%3E digitalInputs;%0A%0A    /**%0A     * Construct with the specified digital inputs.%0A     *%0A     * @param digitalInputs - in order from least to most significant bits.%0A     */%0A    public AutonSwitch(List%3CDigitalInput%3E digitalInputs) %7B%0A        this.digitalInputs = digitalInputs;%0A    %7D%0A%0A    /**%0A     * Construct with digital inputs starting with DIO channel 0%0A     *%0A     * @param bits - number of digital inputs%0A     */%0A    public AutonSwitch(int bits) %7B%0A        List%3CDigitalInput%3E digitalInputs = new ArrayList%3C%3E(bits);%0A        for (int i = 0; i %3C bits; i++) %7B%0A            digitalInputs.add(new DigitalInput(i));%0A        %7D%0A        this.digitalInputs = digitalInputs;%0A    %7D%0A%0A    /**%0A     * Read switch value.%0A     *%0A     * @return numeric value of switch%0A     */%0A    public int position() %7B%0A        int val = 0;%0A        for (int i = digitalInputs.size(); i-- %3E 0; ) %7B%0A            val = val %3C%3C 1;%0A            val = (val & 0xFE) %7C (digitalInputs.get(i).get() ? 0 : 1);%0A        %7D%0A        return val;%0A    %7D%0A%7D%0A

Add auton switch reader