@@ -0,0 +1,1250 @@
+package com.thegongoliers.input.rotation;%0A%0Aimport edu.wpi.first.wpilibj.AnalogPotentiometer;%0Aimport edu.wpi.first.wpilibj.interfaces.Potentiometer;%0A%0A/**%0A * Creates commonly used potentiometers%0A */%0Apublic class PotentiometerFactory %7B%0A%0A    /**%0A     * The type of potentiometer%0A     */%0A    public enum PotentiometerType %7B%0A        AM_2619(3600);%0A%0A        private double scale;%0A%0A        PotentiometerType(double scale)%7B%0A            this.scale = scale;%0A        %7D%0A%0A        /**%0A         * @return the scale of the potentiometer%0A         */%0A        public double getScale()%7B%0A            return scale;%0A        %7D%0A    %7D%0A%0A    /**%0A     * Get a potentiometer%0A     * @param port the port of the potentiometer%0A     * @param type the type of potentiometer%0A     * @param zeroPoint The zero point of the potentiometer. If you expect a position to be 0, but it is reading X degrees, put X here. (ex. actual 1000 to 1100 degrees, expected 0 to 100 degrees. Put 1000 here.)%0A     * @return a potentiometer%0A     */%0A    public static Potentiometer getPotentiometer(int port, PotentiometerType type, double zeroPoint)%7B%0A        if (type == null %7C%7C port %3C 0)%7B%0A            return null;%0A        %7D%0A        return new AnalogPotentiometer(port, type.getScale(), -zeroPoint);%0A    %7D%0A%0A%7D%0A

Create PotentiometerFactory.java