예제 #1
0
  @Override
  public float getPitch() {
    if (!compassAvailable) return 0;

    updateOrientation();
    return pitch;
  }
예제 #2
0
  @Override
  public float getRoll() {
    if (!compassAvailable) return 0;

    updateOrientation();
    return roll;
  }
예제 #3
0
  @Override
  public float getAzimuth() {
    if (!compassAvailable) return 0;

    updateOrientation();
    return azimuth;
  }