You can't get them exactly at the same time...  I'm not sure the hardware
can even do that.  But why do you need it?  If I am moving my device around
in space, I don't see how the two being off by a sample or two is going to
cause any problem.  And I don't believe the compass actually keeps up to
exactly match the current position (let alone is super accurate anyway), so
it always lags behind as you are moving, so any slight different in time
between that and the accelerometer would be lost in the noise.

On Wed, May 13, 2009 at 1:36 AM, Derawi <[email protected]> wrote:

>
> Dear *.*,
>
> I am trying to create a rotationmatrix, to know and see how the phone
> is rotating.
> I didn't quite find any examples of how that could be used. I do have
> the data values of the accelerometer and the magnetic field values,
> however they are not aligned in time. So I have two questions:
>
> - Is it possible to get the different sensor data values at a fixed
> time;
>  e.g. To read the accelerometer and magnetic field values at the same
> time?
>
> - How to retrieve the rotation-matrix by using the getRotationMatrix()
> function when we don't have aligned data.
>
> Thanks in advance. :-)
>
> Derawi
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
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