Hi.

I checked the API documentation for SensorListener ---
SENSOR_ORIENTATION, SENSOR_ORIENTATION_RAW:
All values are angles in degrees.
values[0]: Azimuth, rotation around the Z axis (0<=azimuth<360). 0 =
North, 90 = East, 180 = South, 270 = West
values[1]: Pitch, rotation around X axis (-180<=pitch<=180), with
positive values when the z-axis moves toward the y-axis.
values[2]: Roll, rotation around Y axis (-90<=roll<=90), with positive
values when the z-axis moves toward the x-axis.
---

On G1, it works fine in portrait mode but I have a problem in landscape mode.
I expected value[1] to have a range of -180 to 180 and value[2] to have a
range of -90 to 90 in both (landscape and portrait) modes.
But I actually read value[1] to have a range of -90 to 90 and value[2] to
have a range of -180 to 180 in landscape mode.

Is it peculiar to G1 or is there some wrong in API documentation?

Any help is appreciated.

------------------------------------------
egg <[email protected]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to