summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Anthony Stange <stange@google.com> 2021-09-08 21:34:34 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-09-08 21:34:34 +0000
commit68e875719b5309ae73548793eedaacff1a84f95d (patch)
tree989f9482eb216340573fa7f3adfb60d17d454512
parente34b1b87357e291320e6d307c1762dbab652d23f (diff)
parentc87f38c62cf084646e7d91fcf026cc01973b032c (diff)
Merge "Correct ranges for pitch and roll"
-rw-r--r--core/java/android/hardware/SensorManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/hardware/SensorManager.java b/core/java/android/hardware/SensorManager.java
index 0a76a9c6bee3..9e78a6bb4760 100644
--- a/core/java/android/hardware/SensorManager.java
+++ b/core/java/android/hardware/SensorManager.java
@@ -1440,14 +1440,14 @@ public abstract class SensorManager {
* Assuming that the bottom edge of the device faces the
* user and that the screen is face-up, tilting the top edge
* of the device toward the ground creates a positive pitch
- * angle. The range of values is -&pi; to &pi;.</li>
+ * angle. The range of values is -&pi;/2 to &pi;/2.</li>
* <li>values[2]: <i>Roll</i>, angle of rotation about the y axis. This
* value represents the angle between a plane perpendicular
* to the device's screen and a plane perpendicular to the
* ground. Assuming that the bottom edge of the device faces
* the user and that the screen is face-up, tilting the left
* edge of the device toward the ground creates a positive
- * roll angle. The range of values is -&pi;/2 to &pi;/2.</li>
+ * roll angle. The range of values is -&pi; to &pi;.</li>
* </ul>
* <p>
* Applying these three rotations in the azimuth, pitch, roll order