It works fine on my G1. I'll be posting more info on my blog tonight
(hopefully). Here is a code snippet...
final int matrix_size = 16;
float[] R = new float[matrix_size];
float[] outR = new float[matrix_size];
float[] I = new float[matrix_size];
float[] va
To make getRotationMatrix work, just pass the accelerometer and
magnetic field sensor's observed values array to gravity and
geomagnetic parameters and memory-allocated 4x4 float array to R and I
parameters.
I tried to pass 3x3 arrays as api doc say, but it didn't work.
Y.T.
On Jul 7, 6:28 am, H
On my phone (HTC Magic) SensorManager.getRotationMatrix(...) fails
always: it returns false and does not fill the arrays parameter with
something usable.
I'm surely doing something wrong...
However if getRotationMatrix() doesn't work
SensorManager.getOrientation() is also useless.
If someone kno
Thank you for replying, Serge. I have known exactly what api document
says about this method.
But after some times of trial to figure out what it means, finally I
realized values[] is in radian and this is everything what I needed to
know...
On Jun 15, 6:01 pm, sm1 wrote:
> It's still June 15. H
It's still June 15. Here's what is in the documentation:
at
http://developer.android.com/reference/android/hardware/SensorManager.html#getOrientation(float[],
float[])
you'll find:
public static float[] getOrientation (float[] R, float[] values)
Computes the device's orientation based on the
Is there no body here, or is my question too silly?
On Jun 15, 6:53 am, yoshitaka tokusho wrote:
> Hi all,
>
> Simply what I have to suppose SensorManager.getOrientation()'s return
> values are? I expected getOrientation returns yaw/pitch/roll values in
> degrees like SensorEvent dose when callb
6 matches
Mail list logo