diff --git a/core/java/android/hardware/SensorManager.java b/core/java/android/hardware/SensorManager.java index 3f6e4ce49d1c1..c178aee3d5488 100644 --- a/core/java/android/hardware/SensorManager.java +++ b/core/java/android/hardware/SensorManager.java @@ -1158,7 +1158,7 @@ public class SensorManager * *

*

Sensors coordinate-system diagram.
+ * alt="World coordinate-system diagram." border="0" /> *

* *

@@ -1521,9 +1521,19 @@ public class SensorManager *

  • values[1]: pitch, rotation around the X axis.
  • *
  • values[2]: roll, rotation around the Y axis.
  • * + *

    The reference coordinate-system used is different from the world + * coordinate-system defined for the rotation matrix:

    + * + * *

    - *

    Sensors coordinate-system diagram.
    + *
    Inverted world coordinate-system diagram.
    *

    *

    * All three angles above are in radians and positive in the diff --git a/docs/html/images/axis_globe_inverted.png b/docs/html/images/axis_globe_inverted.png new file mode 100644 index 0000000000000..bd78c7f6bbc23 Binary files /dev/null and b/docs/html/images/axis_globe_inverted.png differ