@@ -0,0 +1,1827 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage org.oastem.frc.sensor;%0A%0Aimport edu.wpi.first.wpilibj.CounterBase;%0Aimport edu.wpi.first.wpilibj.Encoder;%0A%0A/**%0A *%0A * @author mduong15%0A */%0Apublic class QuadratureEncoder %7B%0A    private Encoder enc;%0A    %0A    public QuadratureEncoder(int channelA, int channelB)%0A    %7B%0A        enc = new Encoder(channelA, channelB);%0A    %7D%0A    %0A    public QuadratureEncoder(int channelA, int channelB, boolean isReversed)%0A    %7B%0A        enc = new Encoder(channelA, channelB, isReversed);%0A    %7D%0A    %0A    public QuadratureEncoder(int channelA, int channelB, int scaleValue)%0A    %7B%0A        if (scaleValue == 1)%0A            enc = new Encoder(channelA, channelB, false, CounterBase.EncodingType.k1X);%0A        else if (scaleValue == 2)%0A            enc = new Encoder(channelA, channelB, false, CounterBase.EncodingType.k2X);%0A        else if (scaleValue == 4)%0A            enc = new Encoder(channelA, channelB, false, CounterBase.EncodingType.k4X);%0A        else%0A            enc = new Encoder(channelA, channelB, false, CounterBase.EncodingType.k4X);%0A    %7D%0A    %0A    public QuadratureEncoder(int channelA, int channelB, boolean isReversed, int scaleValue)%0A    %7B%0A        if (scaleValue == 1)%0A            enc = new Encoder(channelA, channelB, isReversed, CounterBase.EncodingType.k1X);%0A        else if (scaleValue == 2)%0A            enc = new Encoder(channelA, channelB, isReversed, CounterBase.EncodingType.k2X);%0A        else if (scaleValue == 4)%0A            enc = new Encoder(channelA, channelB, isReversed, CounterBase.EncodingType.k4X);%0A        else%0A            enc = new Encoder(channelA, channelB, isReversed, CounterBase.EncodingType.k4X);%0A    %7D%0A    %0A    %0A    %0A    %0A%7D%0A

Create Encoder wrapper class & constructors