title: sensors data with respect to true north android
body: <p>I am using the <a href="https://developer.android.com/reference/android/hardware/SensorEvent.html" rel="nofollow noreferrer">SensorEvent API</a> in order to get data for my app from different sensors (more specifically: TYPE_ROTATION_VECTOR, TYPE_GRAVITY, TYPE_GYROSCOPE, TYPE_LINEAR_ACCELERATION). Now, I know that in iOS there is the so called <a href="https://developer.apple.com/reference/coremotion/cmattitudereferenceframe/cmattitudereferenceframextruenorthzvertical?language=objc" rel="nofollow noreferrer">CMAttitudeReferenceFrameXTrueNorthZVertical</a>, which gives all the sensors values with respect to True North, whereas z axis will always be vertical.</p>
  
  <p>I couldn't find anything similar in Android, so I am thinking to manually translate the coordinate system. I am also thinking of using the <a href="https://developer.android.com/reference/android/hardware/SensorManager.html#remapCoordinateSystem(float[],%20int,%20int,%20float[])" rel="nofollow noreferrer">remapCoordinateSystem method</a>. However, I still don't know how to get the data with respect to <strong>True North</strong>. Did anyone have to deal with something similar before? </p>