Skip to content
Samuel Tardieu edited this page Sep 7, 2015 · 1 revision

The source of the heading information is determined as-is:

  1. If the rotation vector sensor (TYPE_ROTATION_VECTOR) exists, it will be used unless the orientation sensor is also present and its used is forced in the settings.
  2. If orientation sensor (TYPE_ORIENTATION) exists and the sensor in 1. does not exist or the settings force the use of the orientation sensor, it will be used.
  3. If at this time a sensor was found, it will be used when speed is under 5km/h, and the location-derived heading will be used when speed is above 5km/h.
  4. If no sensor could be found, the heading will be derived from the location information regardless of the speed.

When using the heading derived from location information, the device orientation is irrelevant since the displayed heading is the direction the user is facing when moving.

Clone this wiki locally