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();
  }
}

package library.gyro;

import edu.wpi.first.wpilibj.Gyro;
/**
 * AnalogGyro
 * Wrapper class that extends the functionality of gyro, and fixes some issues with it
 * 
 * @author Ryan Cook
 */
public class AnalogGyro extends Gyro {
  
  /**
   * Constructor for AnalogGyro
   * @param port sets the port of the gyro
   */
  public AnalogGyro(int port) {
    super(port);
  }
    /**
   * Constructor for AnalogGyro
   * @param port sets the port of the gyro
   * @param sensitivity sets the sensitivity of the gyro
   */
    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();
  }
}

Update AnalogGyro.java