I did some exploration of sensor data. I setup to sample magnetic (Ms), accelerometer (As) and orientation (Os). I wrote the time since the last sample for each sensor to the LogCat and did a cut & paste to a spreadsheet (after some minor edits in a text processor).
I have 737 total samples with 201 Os, 301 Ms, and 235 As. So the first comment is that they do not allways appear together. Typical interval between samples is 220 msecs with a setting of SENSOR_DELAY_NORMAL. This appears to be a fairly consistent sampling interval or slot. If a sample is missed during a slot it appears in another slot later. If an A is missed typically another M appears and then the A in the slot. In other words, the time interval for the two Ms when added is the time interval between the As. In the samples only twice did Ms miss their slot. It may be that this is the more reliable sensor to use for calculations. I reran everything with GAMES and FAST rates. The results were similar as far as the number of each sensor with again Ms appearing as the most reliable. Os and As varied among the tests. Typical sample period is 20 msec for fast and 40 msec for GAMES. I will probably put more information on my blog in the next day or so. Rud http://mysticlakesoftware.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

