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

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

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

    updateOrientation();
    return azimuth;
  }