summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-05-03 15:36:23 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-05-03 15:36:23 -0700
commit9d216f7b0ef66e4d2e32f86cd7e31608fcce49b6 (patch)
tree3c06a0ffbb121fb64962839d8e13818506371e3a
parent557975c2b57b78f163d124f07c541874436df056 (diff)
parentd84d2b7b1ee5c37da878534f4d493d8d00a3f65f (diff)
downloadframeworks_base-9d216f7b0ef66e4d2e32f86cd7e31608fcce49b6.zip
frameworks_base-9d216f7b0ef66e4d2e32f86cd7e31608fcce49b6.tar.gz
frameworks_base-9d216f7b0ef66e4d2e32f86cd7e31608fcce49b6.tar.bz2
Merge "improve documentation for the ROTATION_VECTOR sensor"
-rw-r--r--core/java/android/hardware/SensorEvent.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/core/java/android/hardware/SensorEvent.java b/core/java/android/hardware/SensorEvent.java
index a3ce9f5..b111b84 100644
--- a/core/java/android/hardware/SensorEvent.java
+++ b/core/java/android/hardware/SensorEvent.java
@@ -253,6 +253,23 @@ public class SensorEvent {
* <p>Elements of the rotation vector are unitless.
* The x,y, and z axis are defined in the same way as the acceleration
* sensor.</p>
+ * The reference coordinate system is defined as a direct orthonormal basis,
+ * where:
+ * </p>
+ *
+ * <ul>
+ * <li>X is defined as the vector product <b>Y.Z</b> (It is tangential to
+ * the ground at the device's current location and roughly points East).</li>
+ * <li>Y is tangential to the ground at the device's current location and
+ * points towards the magnetic North Pole.</li>
+ * <li>Z points towards the sky and is perpendicular to the ground.</li>
+ * </ul>
+ *
+ * <p>
+ * <center><img src="../../../images/axis_globe.png"
+ * alt="World coordinate-system diagram." border="0" /></center>
+ * </p>
+ *
* <ul>
* <p>
* values[0]: x*sin(&#952/2)