Get Gyro, Compass, and Accelerometer data at same time

Hi!
Does anyone know how to get the synchronized output from gyro, compass and accelerator of Mbient.
I record data with these three sensors, but the compass is fixed at 10 Hz, and the other two does not has the option of 10 Hz, I am currently roughly put the output together according their generation time. Is there is better way to do this?

Comments

  • I'd count the number of samples received.  For example, if you're sampling magnetometer at 10Hz and acc/gyro at 50Hz, then match every 5th acc/gyro sample.
  • I am trying to do the same thing, and use the average of every five output within one second for acc and gyro to synchronize with compass. Thank you all the same! @Eric
This discussion has been closed.