package library.gyro;

import edu.wpi.first.wpilibj.Gyro;

public class AnalogGyro extends Gyro {
  
  public AnalogGyro(int port) {
    super(port);
  }
  
    public AnalogGyro(int port, int sensitivty) {
    super(port);
    super.setSensitivity(sensitivity);
  }
  
    public AnalogGyro(int port, int sensitivty, PIDSourceParameter source) {
      super(port);
      super.setSensitivity(sensitivity);
      super.setPIDSourceParameter(source);
  }
  
  public void init() {
    super.gyroInit();
  }
  
  public void reset() {
    super.reset();
  }
  
  public double getAngle() {
    return Math.round(super.getAngle());
  }
  
  public double getRate() {
    return super.getRate();
  }
  
  public double pidGet() {
    return super.pidGet();
  }
}

@@ -58,112 +58,488 @@
 o;%0D%0A
-%0D%0Apublic class AnalogGyro extends Gyro %7B%0D%0A  %0D%0A  public AnalogGyro(int port) %7B%0D%0A    super(port);%0D%0A  %7D%0D%0A  
+/**%0D%0A * AnalogGyro%0D%0A * Wrapper class that extends the functionality of gyro, and fixes some issues with it%0D%0A * %0D%0A * @author Ryan Cook%0D%0A */%0D%0Apublic class AnalogGyro extends Gyro %7B%0D%0A  %0D%0A  /**%0D%0A   * Constructor for AnalogGyro%0D%0A   * @param port sets the port of the gyro%0D%0A   */%0D%0A  public AnalogGyro(int port) %7B%0D%0A    super(port);%0D%0A  %7D%0D%0A    /**%0D%0A   * Constructor for AnalogGyro%0D%0A   * @param port sets the port of the gyro%0D%0A   * @param sensitivity sets the sensitivity of the gyro%0D%0A   */
 %0D%0A  

Update AnalogGyro.java