@Override public float getPitch() { if (!compassAvailable) return 0; updateOrientation(); return pitch; }
@Override public float getRoll() { if (!compassAvailable) return 0; updateOrientation(); return roll; }
@Override public float getAzimuth() { if (!compassAvailable) return 0; updateOrientation(); return azimuth; }