Thanks for checking this!

This is how we have implemented it now in the Sensor simulator
http://www.openintents.org/en/node/6

Since you have [0, 360[ for yaw, a detail question would be whether it
is  [-90, 90[ or ]-90, 90] for pitch, and [-180,180[ or ]-180, 180]
for roll. Admittedly, this is an academic question with not much
relevance for real sensors... (for the simulator, we chose [.., ..
[ for all three values).

Peli
www.openintents.org

On 5 Sep., 20:17, "Megha Joshi" <[EMAIL PROTECTED]> wrote:
> 2008/9/4 Peli <[EMAIL PROTECTED]>
>
>
>
>
>
>
>
> > In the documentation I find:
>
> > "Sensor values are yaw, pitch and roll. Yaw is the compass heading in
> > degrees, range [0, 360[ 0 = North, 90 = East, 180 = South, 270 = West
> > Pitch indicates the tilt of the top of the device, with range -90 to
> > 90. Positive values indicate that the bottom of the device is tilted
> > up and negative values indicate the top of the device is tilted up.
> > Roll indicates the side to side tilt of the device, with range -90 to
> > 90. Positive values indicate that the left side of the device is
> > tilted up and negative values indicate the right side of the device is
> > tilted up. "
>
> >http://code.google.com/android/reference/android/hardware/SensorManag...
>
> > The problem is, if both pitch and roll, are restricted to the range
> > -90 to 90, then there is no way to describe for example the "display
> > pointing downwards" orientation. One of the two has to be allowed to
> > go from -180 to +180.
>
> > I think it would make more sense to allow "roll" in the range -180 to
> > +180 and restrict pitch to -90 to 90, because then the top of the
> > device would always point "north" if yaw == 0.
>
> You are right...this is how it is implemented. roll ranges from -180 to 180.
> We will fix the documentation.
>
>
>
>
>
> > Is this assumption ok?
>
> > Peli- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to