[android-developers] Re: Compass X Y inverted on G1 phone?

2008-12-03 Thread Jean-Baptiste Queru
There are quite a few significant issues with the sensor API as it currently exists in the G1, where many aspects were too loosely defined, and where there are a few bugs. A later version of the Android API is expected to resolve those issues (and to provide backward-compatibility with the

[android-developers] Re: Compass X Y inverted on G1 phone?

2008-12-03 Thread Koush
That actually sounds like it is working properly. On the G1 accelerometer, (and all other HTC devices), the positive Z axis is face up, the positive X axis is from the center of the screen to the right, and the positive y axis is from the center of the screen to the mouthpiece. Hence, if you

[android-developers] Re: Compass X Y inverted on G1 phone?

2008-12-03 Thread Koush
Ahh, you are right, HTC has it reversed. The Y value needs to be negated for both the accelerometer and compass to align with the documentation: A constant describing an accelerometer. Sensor values are acceleration in the X, Y and Z axis, where the X axis has positive direction toward the right

[android-developers] Re: Compass X Y inverted on G1 phone?

2008-12-03 Thread Ian
Hi Koush, Thanks for the response On Dec 3, 11:30 am, Koush [EMAIL PROTECTED] wrote: Ahh, you are right, HTC has it reversed. The Y value needs to be negated for both the accelerometer and compass to align with the documentation: but what I'm seeing is different to that. FOR THE