public static DirectionData createFor(final float direction, final DeviceOrientation dp, final float[] orientationVector) {
        return createFor(direction, dp, orientationVector, true);

    }
Create from orientation vector as returned by {@link SensorManager#getOrientation(float[], float[])}
main/src/main/java/cgeo/geocaching/sensors/DirectionData.java